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

icq skype msn linkedin fb t ff youtube picasa google me on github

Advertisement

You are here

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):
    {syntaxhighlighter brush:php}
    if (is_category()) :
    if($feed = get_catfeed_feed($cat)) :
    ?>

    get_title() ?>

    foreach($feed->get_items(0,10) as $item) :
    ?>

    endforeach;
    endif;
    endif;
    ?>
    {/syntaxhighlighter}

    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)

    Attachments: 
    AttachmentSize
    categoryouterfeed-1.2.zip71.44 KB