Custom RSS feeds in WordPress
June 12, 2009
RSS feeds are very useful and very popular. WordPress creates RSS feeds by default, but how to create your own, custom RSS Feed? If you need a custom RSS feed, like for example, a feed indexing only somes categories and tags, or if you redirected all WordPress RSS feeds to Feedburner but still want to be able to get a category feed, there’s an easy solution though, just follow these steps: create a custom page template within your theme that serves out the feed (code below) create a new page (which can be blank),... [Read the full story]
Suggest your visitors to leave comments in your rss feed
February 18, 2009
Most bloggers like to receive comments about their posts. How to display a message on your rss feed, and notifying your visitors that the discussion is open and suggesting them to comment? Additionally, when using WordPress as CMS, sometimes it is necessary to create new posts instead of pages for static pages because you want them to appear in the RSS feed. You may not want to enable comments inside those posts. At other cases, you may also want to selectively choose to enable and disable comments. The problem is, how do... [Read the full story]
Provide a rss feed per category to your wordpress readers
November 23, 2008
Do you blog about a lot of different topics? If yes, you may want to provide a rss feed per category, so your readers will be able to only read what interests them. Believe it or not, this is very easy to achieve. This recipe is probably one of the easiest to achieve I have ever published, but it is very useful. Let’s say you’d like to be able to only suscribe to Live experience wordpress tips. The category url is: http://www.livexp.net/windows/wordpress To get a rss feed, you simply have to add /feed at the end of the... [Read the full story]
Displaying Wordpress Category RSS Feed Link
November 15, 2008
Here is the function that controls the feed link of category as globally set by WordPress: <?php get_category_feed_link($cat_id,$feed) ?> Basically it returns the category feed link. $cat_id is the category id. $feed should be replaced with feed name. Most probably you can use something like this: <?php get_category_feed_link('14',''); ?> That function tells wordpress to return feed link for category with ID 14 and default feed name RSS 2. Ok that is good progress. But it will not print the results to browser... [Read the full story]
Insert ads on your wordpress RSS feed
November 13, 2008
Did you ever wonder how some people are able to display ads on their rss feed? Sure, you can modify core files to do it, but that’s not a good idea at all. Here’s a clean way to insert ads (or anything) on your rss feed, without having to hack any core file. Here, we first create a function called insertAds(), which concatenate a code containing our advertisment to the $content variable, which contains the content of the post. Then, we use the add_filter() function to overwrite the the_content_rss() function with our... [Read the full story]




















