Step 4 - Categorizing your posts

Filed Under: Themes, Wordpress

Okay, so you want to use the category command to post a link to your category? Well its actually pretty easy to get this done. The first step would be to open up your file that you want your category list to display on. So, if you would like your categories to be on the right side than, open up your rightside.php.

Now, once you are in there, figure out where you wanted your category list to display. If you just created the page without a unorder list (ul) than you need to do so. Wordpress uses a ul for there category listing, so you need to define that in your css so it looks the way you want it to. Once you have that, you leave your opening and closing ul tags, and delete all of your li tags out of the list. Your ul should now look like this:

<ul>
<?php wp_list_categories(); ?>
</ul>

You can go to Wordpress Codex: WP List Cats page and look at the parameters list for this function. Any parameters that you use, goes in between the parentheses in this function, and then inside of single quotes. Put as many parameters in there as you want and watch how Wordpress changes what displays.

Now, once you have that in there, and you upload it to your server, you can go ahead and tell your Wordpress blog to use your new theme! That’s it you did it! You have just finished your mind-blowing Wordpress design.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Reddit
  • StumbleUpon
  • Technorati
  • Facebook
  • Google
  • LinkedIn
  • TwitThis
Copyright © 2007-2008 StyleYourBlog
Website Developed by Bennie Mosher
Log in