Wordpress drives me insane. (Problem with categories)

2 replies
I am digging into Wordpress and Thesis theme down to the core level already, but this problem drives me crazy:

I have a site with many categories, categories can have subcategories.

When a user clicks on the (parent) categories in the side-bar i want on my site the subcategories displayed.

Example:

On the sidebar is a list with main categories, one of them could be Animals.
User clicks on animals, and in the middle of the site he sees the available sub categories like Dogs or Cats.

The MAIN PROBLEM here is that i am making an article site and many categories can be empty for now.

I tried with custom code, the problem is that if a category has no post any code cannot get the categoryID...it looks like that for Wordpress a category only "exists" once a post is in a category - so the code ***s out on all the empty categories.

I also used the code from http://articlesss.com and countless plugins...but it simply doesnt work as i want to.

Any idea what i can do?
#categories #drives #insane #problem #wordpress
  • Profile picture of the author pjCheviot
    Banned
    GeorgR

    Take a look at this Template Tags/wp list categories WordPress Codex and the 'hide_empty' tag.

    It may help.
    {{ DiscussionBoard.errors[2220658].message }}
  • Profile picture of the author mattalways
    ...and stop using thesis. It sucks.

    Play around with things. You have no idea what you can do with WP. Let me know if you need some help and I'll take a look.
    Signature

    Quit wasting your money! If you need a website, get me to do it right! I'll probably even do it for less! Design/Development/Software, I'm your guy! matt@snidge.com
    {{ DiscussionBoard.errors[2221228].message }}

Trending Topics