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:
-
How much did DHFS raise for charity last year?
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...
-
The Bloodhound Project: 19th November 2015
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...
-
Students experience 'Life Behind Bars': Nov 2015
Our Year 13 Law and Sociology students visited Ponds Forge in Sheffield on Wednesday 18th November, 2015, to take part in the 'Life Behind Bars' conference, organised by 'True Life Conferences'...
-
Historical Association's Debating Winner: Nov 2015
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...
-
Christmas Art Work at DHFS: 16th 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...
PHP Code
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.