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:
Last week the MFL Faculty and DHFS staff celebrated the European Day of Languages with a programme of house assemblies about the diversity of our linguistic heritage.
2 post-16 students from DHFS have gained places on a Youth Seminar ‘Sustainable Consumption: Why our everyday choices matter’ in Berlin.
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...
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.