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 20 items:
A Revision Well-Being Evening was held for Year 11-13 parents/ students on the 9th April. Catch-up on how this event focused on helping parents and students prepare for the upcoming examinations....
The English Faculty have worked with Dronfield Arts Festival to enter a large number of stories written by our students in to the creative writing competition...
In March 2019, Year 11 performing arts students performed their final pieces which were months in the making. They consisted of original, self devised material, including drama, dance and singing, as 15 minute performances...
Year 3 children from William Levick Primary School spent a fantastic afternoon with our Year 12 A level art students on Monday 1st April, 2019, learning several different techniques to produce wonderful pieces of work...
Updated 2nd April 2019: As employees, apprentices earn a wage and work alongside experienced staff to gain job-specific skills. Continue reading to find out what local vacancies are available right now...
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.