Embed RSS Plugin

I know that some people have asked for some updates to some of the existing plugins I’ve got out there, and it’s on my list of things to do…really. But, I wanted to finish this up first. This is a plugin that integrates with the tinymce visual editor to allow someone to click an RSS icon, fill in some details, and embed a shortcode in a post or page that will be replaced with an RSS feed. Here’s what the pop up window from the page or post writing screen looks like

And, here’s a screen shot of a yahoo news feed:

You can find the code over at wpmudev.org.

I’ve not tested this with a stand-alone wordpress, but I think it would probably work there as well. It’s designed to go in the plugins folder, not the mu-plugins folder.


9 thoughts on “Embed RSS Plugin

  1. Andrea -I’m not actually trimming the feeds. I’m taking whatever is available in the description node. It looks like feeds from wordpress.com, for example, have an oddly formatted node which contains the full content. But, that seems to be rare, and on wordpress.com, they’re poorly formed (they start inside a cdata that goes with the description, and ends outside of it). If you were targeting a specific feed, over which you had control, you’d put all the content in the description node, or if you’d extended RSS somehow, you could change the references to whichever node had the full content. All the feed manipulation takes place in lib/shortcodes.php

  2. Sorry for the delay It appears that what ever plugin I use it is not bringing up pictures. I am using wordpress 6.2 so maybe it has something to do with that.

  3. Hi,

    Thanks for your plugins and sample code – they’ve both helped me a lot in understanding WordPress / WordPress(mu) code.

    In embed_rss I found a small issue using WordPress(mu) which generates an apache error (in the log files only):

    [Thu Jan 07 17:12:05 2010] [error] [client] Request exceeded the limit of 20 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace., referer: http://ublog.naiglobal.com/ublog/wp-admin/post.php?action=edit&post=176

    And with an Apache LogLevel of debug it shows the offending redirects.

    [Thu Jan 07 17:12:05 2010] [debug] core.c(3046): [client] r->uri = /ublog/wp-content/plugins/cets_embed_rss/lib/jquery-ui/cets-jquery-ui.css, referer: http://ublog.naiglobal.com/ublog/wp-admin/post.php?action=edit&post=176
    [Thu Jan 07 17:12:05 2010] [debug] core.c(3052): [client] redirected from r->uri = /ublog/wp-content/plugins/cets_embed_rss/lib/jquery-ui/cets-jquery-ui.css, referer: http://ublog.naiglobal.com/ublog/wp-admin/post.php?action=edit&post=176

    I made a small change to cets_EmbedRSS.php around line 87:

    // SHWARE – enque style doesn’t seem to like the /cets_embed_rss folder – changed it to embed-rss
    //wp_enqueue_style( ‘cets-jquery-ui’, plugins_url(‘/cets_embed_rss/lib/jquery-ui/cets-jquery-ui.css’), array(), $this->version, ‘screen’ );
    wp_enqueue_style( ‘cets-jquery-ui’, plugins_url(‘/embed-rss/lib/jquery-ui/cets-jquery-ui.css’), array(), $this->version, ‘screen’ );

    The above change got rid of the error from the log files. I only found this as I’m evaluating WordPress and was monitoring the Apache logs on my development machine. I’m still new to this app (and Php / Apache) and hope this is the best way to fix the issue.

    Thanks again,


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s