PHP Classes

File: Services/wordpress.example

Recommend this page to a friend!
  Classes of Leonardo Branco Shinagawa  >  Feedee  >  Services/wordpress.example  >  Download  
File: Services/wordpress.example
Role: Example script
Content type: text/plain
Description: Wordpress example
Class: Feedee
Retrieve and parse RSS feed from remote sites
Author: By
Last change: added video support example
Date: 11 years ago
Size: 620 bytes


Class file image Download


$wordpress = new Feedee('wordpress');
$wordpress->setUrl('http://example.wordpress.url/feed=rss2'); //MUST be rss2

foreach ($wordpress as $post)
'<h1><a href="'.$post->link.'">'.$post->title.'</a></h1>';

$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.

For more information send a message to info at phpclasses dot org.