Daniele Cruciani
Programmatore Developer PHP/MySQL Freelance
mobile: +39 3489215204

icq skype msn linkedin fb t ff youtube picasa google
seconds to the end of World
End of World 21 December, 2012 11:11:00
Hire me before that day! | don't bother

Wordpress Category external feed plugin

This wordpress plugin is for show custom external rss feed in category page.

For example if you want a category page list rss feed from another site category page, this is for you.

It is my first wordpress plugin (ok, maybe not exactly the very first hello world like ;)

It use simplepie because I like it. (it is included in package and license is almost compatible)

License: GPL
From an idea of: IM Evolution a SEO/SEM Company

Admin page:
edit category

Live demostration:
http://joker.smartango.com/argomenti/sistemi-operativi/#categoryextfeed

User guide

  • Install and set cache folder writeable by server
  • Edit category and set feed url
  • Use simplepie api to access data returned by get_catfeed_feed($cat) (see simplepie)

example (in archive.php theme file):

<?php
if (is_category()) :
	if($feed = get_catfeed_feed($cat)) :
?>
<h3><?php echo $feed->get_title() ?></h3>
<?php
 foreach($feed->get_items(0,10) as $item) :
?>
<div>
<h4><a href="<?php echo $item->get_permalink() ?>"><?php echo $item->get_title() ?></a></h4>
</div>
<?php
   endforeach;
endif;
endif;
?>

Tech info
Plugin create a new db table ($table_prefix.'category_ext_feed') with feedtitle and feedurl fields.

Note: it works only on edit category, not creation, because I do not know how to get category id on creation .. and documentation is missing

Update
2010 October, 29 Fix problem on create category
2010 November, 23 Widgetize (widget for sidebar available)

AttachmentSize
categoryouterfeed-1.2.zip71.44 KB