Add Text To Home Page Only on WordPress Blog



WordPress 3.01 I wanted to add a little snippet of unique text, and have it display on my self hosted WP blog home page ONLY. It was actually very easy. I added this code to my theme index.php: php if(is_home() && !is_paged()):?>write text here Note – I did not want a static home page for [...]

Read More

WordPress SEO – The Best WordPress SEO Plugin?



I was thinking of making a wordpress seo plugin, as I thought the existing things out there where filled with a lot of useless stuff you don’t need but Yoast has a great seo plugin suite that already does some of the sort of things I sort of wanted. I’m now running WordPress SEO on Hobo (it is a beta [...]

Read More

WordPress – List Recent Posts From A Single Category on Posts Within Same Category



WORDPRESS 3.0+ I wanted to display the recent post titles from a specific category, to visitors who landed on a post within that specific category (and i didn’t want to use a plugin). List posts from a specific category ONLY on pages within specified category: php if (in_category(’32′)) { ?> <div class=”moduletable”> <h3>Latest Snippets</h3> <ol> [...]

Read More

How To Exclude A Category or Post From RSS Feed in WordPress



How To Exclude A Category From RSS Feed in WordPress: You just need to add this code to your WP theme functions.php file: <?php function myFeedExcluder($query) { if ($query->is_feed) { $query->set(‘cat’,'-5′); } return $query; } add_filter(‘pre_get_posts’,'myFeedExcluder’); ?> In the above example – -5 is the category ID I might want to exclude. :) – Pretty simple [...]

Read More

WordPress Blog in Subdomain or Subfolder on Main Site? Which Is Best?



Would I host a Blog on sub-domain or a sub-folder on the main site? For me, like a lot to do with seo, it would depend on what I had to start off with: Sub-domain – If I have a large site with a lot of domain authority, like a powerful brand, or a well-known [...]

Read More