I Build Web Sites

Do you need to take your dull website and make it shine? That's what SLiK INTERACTIVE is here to do, offering a range of web design services to meet your internet needs.

  • Mizu
  • Flow Go Riding Center
  • TW's Grille and Bar

Archive for the ‘Wordpress’ Category

Don’t Auto Upgrade your Wordpress to 2.7.1!

auto_upgradeOkay, 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…

Wordpress and The Loop: Don’t Be Scared

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.