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:
The Summer edition of DHFS Careers News includes; Techniques for job interview success, advice for parents with children approaching Year 9 or Sixth Form options, University open days, plus, find out where to research vacancies...
Updated 13th April 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...
In the first week of March 2017, students and staff embarked on the annual Spanish study trip to Cantabria, located in the North of Spain. Year 10 student, Revai Fearn, wrote about the visit; his third to Cantabria with DHFS...
Former DHFS student Dylan Lambert, who left Year 13 in 2016, has recently gained a place on the BA (Hons) Musical Theatre course at Mountview Academy of Theatre Arts in London. This is an outstanding achievement...
On Monday 13th March, 2017, ten Year 12 and 13 students, and two teachers, rolled out of bed and onto the school minibus at 2:30am, ready to travel to Manchester airport for their early morning flight to Barcelona...
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.