Adding Post Feeds to the wordpress Header

October 29, 2008

WordPress generates a unique RSS feed for each post on your blog, which can by default be accessed in the post metadata section below the post itself. However, in order to make the most of your feed you need a link element pointing to it, telling browsers, bots, and whatever and whoever else might be accessing your page that this is a feed, not just any old XML file. Unfortunately WordPress doesn’t provide a dedicated option for doing this yet, so we’re going to have to make one ourselves. <?php if (is_single())... [Read the full story]

Add a rss link on each wordpress post

October 29, 2008

How to create a rss link displayed on each post? Althought this is very easy to do, many WordPress users seems to wonder how to do it. The answer is simple. To create a rss suscribtion link under each post, edit the single.php file from your theme. Locate the WordPress loop, and simply add the link below.   <?php if (have_posts()) : while (have_posts()) : the_post(); // WordPress loop ?> <div class="rss-box"><a href="http://feeds.feedburner.com/livexp">Enjoyed this post? Suscribe... [Read the full story]

Exclude categories from your rss feed

October 25, 2008

Depending to your blog structure, it may be interesting to exclude some categories from your rss feeds. Before starting to code, you’ll have to know the numeric ID of the categories you want to exclude. Once you have the ID of the categories you want to exclude from your rss feed, open the functions.php file from your theme. If your theme doesn’t have a functions.php file, create one. Paste the following code in it: function myFilter($query) { if ($query->is_feed) { $query->set('cat','-5'); //Don't... [Read the full story]

Display any rss feed on your WordPress blog

October 22, 2008

Do you ever wanted to be able to display any rss feed on your WordPress blog? If yes, here’s a simple code that will get that thing done. Do you know that WordPress have a function, called wp_rss(), which is nothing else than a built-in rss reader? Here’s the simple code to add where you want the rss to be displayed (Personally, I’d use my sidebar, my footer or a page template): <?php include_once(ABSPATH . WPINC . '/rss.php'); wp_rss('http://feeds.feedburner.com/livexp', 3); ?> Let’s have a quick look to the... [Read the full story]

Provide rss feed for each post comments

October 21, 2008

When a post have lots and lots of comment, it can be hard for your readers to stay on the conversation. Most WordPress users don’t know it, but our favorite blogging engine have a built-in function for providing rss feed for the comments of a specific post. Well, this recipe isn’t really a hack or anything: Even if most WordPress users seems to ignore it, in order to provide a rss feed for the comments of specific post, you just have to call the comment_rss_link() function: <?php comments_rss_link('» Comments RSS... [Read the full story]

Page 2 of 3«123»