Hi, I'm new at blogging. The categories I used are in an alphabetical listing, of which I do not want. I want them to be in the order I want, similar to my web page. Can anybody explain to me how to do this in simple English language?
Thank you
Hi, I'm new at blogging. The categories I used are in an alphabetical listing, of which I do not want. I want them to be in the order I want, similar to my web page. Can anybody explain to me how to do this in simple English language?
Thank you
Could you post a link to your website? And explain in which order you do want them. Basically you need to edit wp_list_categories() This has three options: order alphabetically, by the category id or by the number of posts in that category. If none of those options is what you want you will need to write a custom function.
If those 'orderby' parameters of the template tag, wp_list_categories(), don't work for you, try these plugins:
http://wordpress.org/extend/plugins/order-categories/
tag: order-categories
http://wordpress.org/extend/plugins/my-category-order/
tag: my-category-order
Here is what I've done to organize my categories in my subnav bar:
In header.php find this or something similar to it:
<?php wp_list_categories('orderby=name&title_li=&depth=4'); ?>
Now replace "name" with "slug"
Now when you create your categories you use numbers to create the slugs for them. For instance, on my page ( you can see on http://sdhumanist.org ) my slug for News is 1news. Slug for events is 2events and so on.
Hope that helped!
This topic has been closed to new replies.