WordPress.org

Ready to get started?Download WordPress

Forums

Embed RSS
Amend to embed-rss shortcode file (1 post)

  1. ollybenson
    Member
    Posted 3 years ago #

    I made an amendment to fix a bug in the output of this (created via shortcodes.php in the lib directory).

    The plugin couldn't read amperhsands (&) in the RSS feed, so that when I was trying to get it to read RSS feeds of categories created by WordPress it was simply returning the whole lot.

    I changed
    $rss = @fetch_rss( $id );
    to:
    $rss = @fetch_rss( str_replace('\&\#\3\8\;','&',$id) );
    (without the backslashes)

    And it works properly. Obviously this is a quick'n'dirty fix, and you may want to loo at a more elegant way to handle ampersands in the RSS feed.

    Olly

    http://wordpress.org/extend/plugins/embed-rss/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags