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 6-10 of 18 items:
-
Careermag - Find the right path for you: October 2015
Careermag is packed with advice and information on Apprenticeships and early careers. It is a new venture from Careermap - the online Apprenticeship vacancy resource that helps people find the right path for them!
-
Future Chef 2016 - Heat One Winners: 10th Nov 2015
On Tuesday 10th November, 2015, the first heat of the Future Chef 2016 competition was held in school. Keep reading to find out who's culinary talents impressed the judges (and made our stomachs rumble)...
-
Art & Drama Field Trip to London: 4th November 2015
On Wednesday 4th of November, 2015, a group of Year 10, 11 and 13 students visited London for their Art and Drama course. Read Liviya Finnegan's account of the 3-day visit, and see the photos in the gallery...
-
DHFS Remembrance Service: 11th November 2015
At 11am on Wednesday November 11th, 2015, two student representatives from each mentor group came together in the Memorial Garden in A-Block to mark the National two-minute silence on Armistice Day...
-
DHFS Christmas Hampers: 9th November 2015
With the festive season approaching, we feel it is ever more important to encourage our students to think of others. With this in mind, our student committees have made plans to produce Christmas hampers...
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.