Skip to main content

Show Multiple RSS Feeds

Items in the RSS Feed

Display a linked title to each item in the RSS feed

Behind the scenes, this is fetching the RSS feed over HTTP, parsing it, and then creating a list of linked items.

Biden inauguration: New president to be sworn in amid Trump snub
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Joe Biden's inauguration as 46th US president will mark a new chapter from Donald Trump's legacy.
Published: Jan 20, 2021 16:01:59

Biden inauguration: New president to be sworn in amid Trump snub
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Joe Biden's inauguration as 46th US president will mark a new chapter from Donald Trump's legacy.
Published: Jan 20, 2021 16:01:56

US: China 'committed genocide against Uighurs'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The declaration came a day before the Trump administration hands over to President-elect Joe Biden.
Published: Jan 20, 2021 16:01:09

Madrid explosion leaves two dead
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
At least two people have died in a suspected gas blast that destroyed four floors of a building.
Published: Jan 20, 2021 16:01:35

Tunisia youths warned over riots amid Covid curfew
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Protests continued for a fifth night over high unemployment and an economic crisis.
Published: Jan 20, 2021 15:01:12

Biden inauguration: Trump leaves White House vowing 'we will be back'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Donald Trump tells supporters "I will fight for you, I will be watching" as he heads to Florida.
Published: Jan 20, 2021 14:01:47

Donald and Melania depart on Marine One
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Donald Trump and his wife Melania depart on Marine One hours ahead of his successor Joe Biden's inauguration.
Published: Jan 20, 2021 13:01:16

South Africa 'Dr Death' row: Clinics defend Basson's right to practise
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
The cardiologist, who works in Cape Town, once headed the apartheid-era secret germ warfare programme.
Published: Jan 20, 2021 12:01:56

Egyptian billionaires invest $120m in Ghana academy
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
An Egyptian conglomerate worth billions of dollars invests $120m in the Right To Dream academy, founded in Ghana in 1999, with plans to expand in Egypt and the UK.
Published: Jan 20, 2021 11:01:44

Biden Inauguration: What will Joe Biden do first?
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The President-elect has a laundry list of priorities for his first 100 days in the White House.
Published: Jan 20, 2021 11:01:37

Sibusiso Moyo: Zimbabwe foreign minister dies from Covid-19
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
The southern African state has recorded a surge in cases since the end of the festive season.
Published: Jan 20, 2021 11:01:26

Coronavirus: Why South Africa has yet to roll out vaccines
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
South Africa is the worst-hit country in Africa, but has not yet started doing Covid-19 vaccinations.
Published: Jan 20, 2021 11:01:24

Trump pardons dozens in final hours, including ex-aide Steve Bannon
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Donald Trump issues pardons and commutations for more than 140 people in his final hours as president.
Published: Jan 20, 2021 10:01:01

Australian Open: Players told not to feed mice while in Covid quarantine
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Australian Open players are told not to feed mice at their quarantine hotel in Melbourne after one player complains of rodent infestation.
Published: Jan 20, 2021 10:01:42

Prada drops Chinese actress over alleged surrogacy row
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The actress has been accused of abandoning children she had through a surrogate.
Published: Jan 20, 2021 07:01:29

Jack Ma makes first appearance since October
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Fears had grown over the Alibaba founder's whereabouts because of pressure from Chinese authorities.
Published: Jan 20, 2021 06:01:02

SLS: Nasa finds cause of 'megarocket' test shutdown
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
An issue with hydraulic systems led to the early shutdown of a test for Nasa's new "megarocket".
Published: Jan 20, 2021 04:01:40

The Code:

<?php
  $urls 
= array("http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml",
                
"http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml",
                
"http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml");
  
$feeds = array();
  
$feeds _querypath_examples_show_multiplerss($urls10);
    
  foreach(
$feeds as $date => $item) {
    
$out .= '<p>' l($item['title'], $item['link']) 
            .
' <br />From: ' $item['url'
            .
' <br />' $item['desc'
            .
' <br />Published: ' date("M d, Y H:m:s"$date) . '</p>';
  }
  
?>

References:

The QueryPath API