Feed Wrangler
Feed Wrangler is a simple plugin that allows one to create custom feeds for their WordPress blog. You can customize the structure of that feed by creating a corresponding file in your blog theme, otherwise the custom feed will default to your RSS2 feed.
Main settings screen where you can create new feeds and manage existing onesSome possible use cases:
- You want a custom URL to access a feed by (i.e. “/feed/misterspecialfeed” )
- You want some feeds to bypass Feedburner redirect.
- A sponsor asks you to place an ad in your feed
- You need a clean, ad-free feed to provide a partner (see Amazon Kindle), that doesn’t go through FeedBurner or is customized in any way.
- You prefer adding and editing feeds in a way more analogous to Movable Type
The plugin is young, so be weary of an edge-case I didn’t account for. Feedback is always welcome.
I’m intrigued by this plugin, but not sure I understand exactly how to deploy it. I’m interested in using it to bypass the FeedBurner redirect (I have the FeedSmith plugin installed) by creating a second feed that I can then direct to a second FeedBurner redirect (yeah).
I’m essentially looking to separate an “all post” feed (including aggregated content) from a “mysite.com/tag/mysite/feed” feed (for just my original content). The FeedSmith plugin causes a 404 with that second, original post feed (presumably because all feeds on my site are being redirected to the first FeedBurner feed, the “all post” one). If I create a feed with Feed Wrangler, what exactly keeps it from being redirected to the first FeedBurner feed by the FeedSmith plugin? Any guidance you could offer would be greatly appreciated, ’cause I sort of don’t know what I’m doing.
[...] Thanks for visiting! If you’re new here, you may want to subscribe to our RSS feed. This blog posts regular Wordpress news, updates of themes, plugins, ideas, hacks, quick fixes and everything about blogging, especially about Wordpress. Go ahead, subscribe to our feed! You can also receive updates from this blog via email.Feed Wrangler [...]
What I sent to Lewis, in case it’s helpful for others:
1) Go to Feed Wrangler admin and create a new feed. For the sake of this example, name the feed slug: “mysitefeed”. This means you’ll be able to access this feed by going to: “yoursite.com/feed/mysitefeed” (and actually “yoursite.com/mysitefeed/” will work too).
2) Go to your active theme directory and create a new file called “feed-mysitefeed.php”. The file name you’ll need to use will be listed in the Feed Wrangler admin.
3) If the file is blank, going to “yoursite.com/feed/mysitefeed” will give you a blank page.
4) Now you’ll need an RSS feed template to populate that file. Grab the contents of “/wp-includes/feed-rss2.php” and paste that into the “feed-mysitefeed.php” file. When accessing your feed, you’ll now notice that it’s a default RSS feed for all of your site’s post.
5) Now, we’ll want to change that feed to only include posts from your special tag. So open the “/wp-includes/feed-rss2.php” file for editing and add the following code (change it so “tag=test” points to your proper tag i.e. “tag=yourtag”)
< ?php
// Customize the query for this feed, below example
// pulls post from the "test" tag.
query_posts('tag=test');
?>
it should go right before this line:
< ?php while( have_posts()) : the_post(); ?>
6. Now accessing the feed “yoursite.com/feed/mysitefeed” should give you a feed with ONLY the posts in that tag. You can now create a new feed on FeedBurner.com and point it to this feed address.
[...] Plugin: Feed Wrangler Filed under: WP [...]
Cool idea, now i give a test and extend the possible use cases.
Keep the good work!
I followed your instructions but I get the full feed when I go to the new feed I created. Without the rss2 file content I get an empty page and with I get the full feed. I made sure I placed the filter comment in the location you identified (query post = my tag) but It seems like it’s being ignored… any thoughts?
[...] - Feed Wrangler [WP Plugin] “Feed Wrangler is a simple plugin that allows one to create custom feeds for their WordPress [...]
[...] Feed Wrangler- Feed Wrangler is a simple plugin that allows one to create custom feeds for their WordPress [...]
[...] Feed Wrangler Build custom feeds on your wordpress site (tags: wordpress plugins plugin rss feeds) [...]
I love this plugin, it’s solving a major problem I’ve had with http://todo.bradyjfrey.com - how to customize the feed so some of these post url’s go to the main page… however, following your query directions, how would I do an if and statement in this file without bombing it? What I’m after is:
1. If the category is tagged completed, use the following template tags…
2. If it is not tagged completed, then use these template tags…
Any advice as I tinker? Thank you!
Brady and I exchanged a few emails and here are some details that might be helpful for other people in light of our conversation:
Within your feed template:
When you are in the following loop: < ?php while( have_posts()) : the_post(); ?> you are iterating through individual posts.
For each individual post, you can run the following check:
< ?php if (in_category('completed')) { ?>
<title>Complete: < ?php the_title_rss() ?></title>
< ?php } else { ?>
<title>< ?php the_title_rss() ?></title>
< ?php } ?>
This would prepend the title element with “Complete: ” if a post is inside the “completed” category
This is precisely what I needed - a way for my main site’s RSS reading code to bypass the Feedburner feed and get it straight from Wordpress, all the while letting users still subscribe to the Feedburner version. Thanks a lot for this!
Is there a way that I can pass GET variables to this feel i.e: /feed/custom/?catid=3
I’d like to pull some dynamic information without making a ton of different custom feeds.
Thanks again, Ephram - your fix was the trick I have been looking for ever since I launched http://todo.bradyjfrey.com. Let me know some day if I can return the favor!
[...] vi permette di inserire e mostrare molteplici RSS Feed in una singola pagina. Comodo. Infine con Feed Wrangler abbiamo la capacità di creare i nostri Feed personalizzati in base al contenuto del nostro Blog. [...]
After trying everything I could think of to add a different feed I tried this plugin. I could only get the default RSS2.0 feed even after adding a custom feed to my theme folder.
I don’t really need to create a lot of feeds, only one custom one. Is there a simple way to do this?
I tried the code on the forum, but I couldn’t get that to work either.
[...] is the Feed Wrangler plugin, but I didn’t feel like I needed something like that when I only wanted one custom [...]
Hi, Ephram! Thanks for the plugin!
I managed to use it perfectly on Wordpress 2.5. However, when I upgraded to 2.6, I started having problems.
Whenever I create a new template, it shows up (correct) but when I reopen Feed Wrangler control panel or create a new template the first one is gone! Of course, WP does not recognize it as a valid template.
Any idea of what may be causing it?
Cheers,
Mateus Moraes
Mateus — the plugin needed a tweak to accomodate some changes in 2.6.
I just uploaded the new version (0.2) that should address the problem you’re seeing.
[...] 45. Feed Wrangler [...]
Version 0.3 works fine in WP 2.6, thanks!