Display Excerpts From an RSS Feed, with Pagination
A PHP5 script that reads an RSS file and outputs short customisable excerpts to HTML, with 'read more' links leading to the full story. Pagination is included to break a long RSS file into smaller pieces and limit the number of items shown per page.
Works in modern browsers and IE7+
Please view the source of this page for HTML markup and CSS. The relevant PHP is provided below.
Featured Stories from DHFS
Showing 1-5 of 18 items:
With all the fundraising events and activities regularly taking place in school, you may very well ask "How much money did DHFS raise for charity during the last academic year (2014-2015)?". Keep reading to find out...
Ten Year 8 students took part in a day of activities at Chesterfield College, based around the Bloodhound Project, a global engineering project aiming to set the world land speed record at 1000mph...
Congratulations to Sam MacLeod from Year 13, who won the South Yorkshire and North Derbyshire Historical Association's Sixth Form debating competition, on Thursday 19th November, 2015...
Our students demonstrated their artistic talents on Monday 16th November, 2015, as they unveiled Christmas-inspired panels for a new graffiti wall funded by Derbyshire Police and Crime Commissioner, Alan Charles...
Grab yourself a complete code example: download a text file of the PHP, HTML and CSS.
More demos and snippets
Did you find this useful? There are more demos and code snippets this way.