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.

China brand sparks backlash for "welcome to hell" kid's shirt
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Major brand JNBY has since pulled the item, which also features images of the Grim Reaper.
Published: Sep 24, 2021 06:09:28

Catalan separatist Carles Puigdemont arrested in Italy
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Spain accuses the former president of the Catalonia region of sedition, and wants him extradited.
Published: Sep 24, 2021 06:09:42

Gabby Petito and Brian Laundrie: What do we know about the boyfriend?
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A body found on Sunday is that of Gabby Petito, but her fiancé remains missing. This is what we know.
Published: Sep 24, 2021 06:09:40

Indian police arrest 28 for suspected gang-rape of 15-year-old girl
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The 15-year-old girl in Mumbai was alleged gang-raped for around nine months.
Published: Sep 24, 2021 05:09:51

Capitol riot committee to investigate Trump allies
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The committee investigating the 6 January riot has issued the first subpoenas of the Trump team.
Published: Sep 24, 2021 03:09:16

Tom Felton: Harry Potter star collapses during celebrity golf match
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The actor, 34, is carried off a golf course after collapsing during a celebrity match in the US.
Published: Sep 24, 2021 02:09:31

Several shot in Tennessee grocery store
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
US police say that 13 people were shot in a Memphis suburb on Thursday afternoon.
Published: Sep 24, 2021 02:09:25

Gabby Petito case: FBI issues arrest warrant for boyfriend Brian Laundrie
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The indictment says Brian Laundrie used a debit card that did not belong to him after her death.
Published: Sep 24, 2021 01:09:01

Gas crisis leaves Europe searching for solutions
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Consumers face a steep rise in energy bills as governments try to fund the move to renewable energy.
Published: Sep 24, 2021 01:09:20

Migrants freezing to death on Belarus-Poland border
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The BBC finds stranded migrants facing sub-zero temperatures amid a row between Poland and Belarus.
Published: Sep 24, 2021 01:09:56

Africa's week in pictures: 17-23 September 2021
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
A selection of the best photos from the African continent and beyond.
Published: Sep 24, 2021 01:09:42

R. Kelly lawyer compares him to Martin Luther King
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The defence makes its final arguments in the singer's sex-abuse trial.
Published: Sep 23, 2021 23:09:02

UK Covid vaccine rules cause hesitancy - Africa health boss
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
The UK's refusal to accept vaccine certificates from Africa could increase hesitancy, says Africa CDC.
Published: Sep 23, 2021 22:09:20

US Haiti envoy quits over 'inhumane' deportations
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Daniel Foote says US policy on Haiti is "flawed" and sending migrants back is "counterproductive".
Published: Sep 23, 2021 20:09:37

Aukus pact: France and US seek to mend rift
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The deal caused outrage in France, which lost a contract to build submarines for Australia.
Published: Sep 23, 2021 13:09:15

'Side-eyeing Chloe' Clem to sell iconic meme as NFT
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The image of Chloe Clem could fetch her tens of thousands of dollars at auction.
Published: Sep 23, 2021 12:09:16

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