<?php
 
 
/* EXAMPLE */
 
 
$wordpress = new Feedee('wordpress');
 
$wordpress->setUrl('http://example.wordpress.url/feed=rss2'); //MUST be rss2
 
 
foreach ($wordpress as $post)
 
{
 
        echo '<h1><a href="'.$post->link.'">'.$post->title.'</a></h1>';
 
        echo '<p>'.$post->content.'</p>';
 
}
 
 
 
/* ATTRIBUTES */
 
$post->link;
 
$post->title;
 
$post->pubDate;
 
$post->description;
 
$post->content;
 
$post->image; //Return the url of the first image founded on the Content.
 
$post->getVideo($width, $height); //Return the object/embed tag of the first video founded on the Content. Width and/or Height can be setted.
 
 |