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 21 items:
From Monday 5th June, 2017, we will be making changes to our Mobile Phone Policy in school. This article details those changes and the reasons behind them, and reminds you of our expectations from students while in our care...
On Friday 12th May, 2017, the students of DHFS's Sixth Form descended on the Hilton Hotel in Sheffield for their award-winning, space-themed prom. Head boy, Finn Ranson, and Head Girl, Amy Charles, tell us about the celebrations...
Updated 19th May 2017: 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...
Year 7 students were given the challenge of writing a short story of no more than 400 words featuring a new literary hero or villain that they had created. This resulted in some wonderfully engaging and original ideas...
During a recent visit by Anna Fitzpatrick of Sky Sports, some Year 7 students held a press conference to interview her about her life and career. They were then tasked with writing up a newspaper profile...
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.