Customize the Auto Discovery of Your WordPress Feed

November 24, 2008

As a blogger, one great way to grow your blog is to promote your RSS feed.   What many people might not realize is a lot of bloggers use modern web browsers auto discovery feature when subscribing to a blog. Are you taking advantage of this feature? By default, your WordPress theme will come with auto discovery built into the header.php file.  The code should look something like this: <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url');... [Read the full story]

Prevent WordPress Plugins From Breaking Your Theme

November 24, 2008

Have you ever deactivated a WordPress plugin only to find that your WordPress blog no longer works?   This is something that can happen in any situation where a WordPress plugin is called by your WordPress theme without using the proper statement.   How Can I Avoid This Problem? Whenever you add plugin functionality to your WordPress theme that uses a call, make sure to turn it into a variable, so your theme won’t break if the plugin is deactivated.  An example would be the popular Related posts plugin that most... [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: To get a rss feed, you simply have to add /feed at the end of the... [Read the full story]

List recent post on a non-WordPress site

November 23, 2008

Do you ever wanted to be able to list your WordPress posts on a non-WordPress website? If yes, just read on, got the solution to do that. Let’s go: Simply paste the following code on your non WordPress site. You may need to upload the wp-config file from the blog you want to get the posts on the same directory. That’s all. You can also parse rss feeds, but that solution can be simpler. <?php $how_many=1; //how many posts to display require('blog1/wp-config.php'); //the path to the wp-config file of the blog I want... [Read the full story]

Display WordPress Categories without Children

November 22, 2008

If you are displaying your categories somewhere and would like to remove the children, here is the code you’ll need (for WordPress 2.5+): The depth=1 is the important one for the purpose of this hack as it is what tells WordPress not to display more than your parent categories.   By default, it is of course set to depth=0 (shows all categories).   If you are wondering what other options you have, here is what the WordPress Codex lists for the depth parameter: 0 – All Categories and child Categories (Default). -1... [Read the full story]