Back to top

Transform an RSS feed

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.

Hiking Mt Jefferson Wilderness Cascade Mountains Oregon

New Oregon State Bird

Buffalo In Oregon

Balancing Rocks of Oregon

Mule Deer Doe and Fawns

Baby Elk Calves Of The Ochoco Mountains

Red breasted Nuthatch Visiting

Scrub Jay Playing With Food

Assassin Fly Robber Fly

Banded Woolly Bear Caterpillars

Turkey Vulture Feeding In The Ochoco Mountains

Wild Horses of The Ochoco Mountains

Red-tailed Hawk Eating

Wild Frog Eating in the High Desert

Painted Lady Butterfly In The High Desert

Oregon Red Admiral Butterfly

Cosmos Flower Blooms in October

Tiger Swallowtail Butterfly On The Lilac Flowers

Green-Veined White Pieris Napi Butterfly Photos By Coralie

Visit To The Ochoco Mountains

Painted Lady Butterfly Laying Eggs

Poppy Flower Blooming

The Robin Fledgling That Left The Nest

Hummingbird On The Columbine Flower

Dragonfly of the High Desert of Oregon

Bumblebees Are Back

Antelope Pronghorn of Jefferson County

Mason Bee Have Emerged

Red Tailed Hawk Flying Above

Monarch Butterfly Visits The High Desert

The Code:

<?php
  $url 
url('rss.xml', array('absolute' => TRUE));
  foreach (
qp($url'item') as $item) {
    
$title $item->find('title')->text();
    
$link $item->next('link')->text();
    
    
$out .= '<p>' l($title$link) . '</p>';
  }
  
?>

References:

The QueryPath API