Support » Plugins and Hacks » Embed RSS » Amend to embed-rss shortcode file

Amend to embed-rss shortcode file

  • 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 );
    $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.



  • The topic ‘Amend to embed-rss shortcode file’ is closed to new replies.