Okay, don’t auto upgrade your Wordpress to 2.7.1 only if you have a custom theme. Why you ask? Oh, only because it will overwrite your current theme files with the default kubrick layout. I found this out the hard way when I upgraded a blog to 2.7.0 with wordpress files I had on my computer. Then I clicked the upgrade now button in the admin section which led me to the screen with the auto upgrade button. Just a little tip for ya…
Archive for the ‘Wordpress’ Category
Are you trying to display only certain categories on your Wordpress blog’s homepage? So was I until researching that this almighty “Loop” holds the solution to the problem. It definitely helps to know a little PHP before you go and tinker with the Loop, but it’s actually rather straightforward here.
To omit certain categories from your homepage, edit index.php.
Find where it reads:
1 | <?php if (have_posts()) : ?> |
And add the following conditional statement before the code:
1 2 3 4 5 | <?php if (is_home()) { query_posts("cat=-3"); } ?> |
This code now will display all categories on the homepage EXCEPT for category 3. You can apply this concept to whichever categories you need to omit. For more than one, you simply separate with a comma.




