Wordpress Multiple Category Question

11 replies
Is it possible to have two separate sets of categories (or more) on a Wordpress Blog and have the separate sets of categories (including the sub-categories) show up in the sidebar?

If so, could you post an article in each set of categories?

For example - one set of categories could be something like 'Dog Products' and the second set of categories 'Dog Breeds.'

If I wanted to post an item in both Dog Products/Brushes and Dog breeds/Poodles - would that be possible?
#category #multiple #question #wordpress
  • Profile picture of the author Karen Blundell
    yes, you can have as many main category groups that you want, and then sub-categories of the main category.
    and then when you post you then tick off the appropriate categories that your post falls under, as many as you want in fact

    then in your sidebar widget..drag over the Categories widget, and make sure " show hierarchy" is checked.
    Signature
    ---------------
    {{ DiscussionBoard.errors[1606722].message }}
  • Profile picture of the author mattalways
    Not that I know of. There is of course the tag option though as your secondary category set. Not quite the same, I know.

    I think i might have misunderstood your question. Do you simply want to have category > subcategories and add your posts to both? If so, yes, that's how it works.
    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[1606726].message }}
  • Profile picture of the author Steve Ranger
    You can do all this with queries:
    Template Tags/query posts WordPress Codex

    There's also a few plugins that you can find
    on the Wordpress.org website that make this
    a lot easier.
    {{ DiscussionBoard.errors[1606732].message }}
  • Profile picture of the author Istvan Horvath
    Both (=the first 2) answers above are correct... from different point of view

    Inside (in the back end) you have only ONE set of categories/subcategories.

    Outside (on the front end) you can display your existing categories in any way you wish - just use the template tags with the proper parameters.

    Not sure if this would be possible with the standard set of widgets but there probably is some kind of solution (widget, plugin). Worst case scenario: you hand code the template tag
    Template Tags/wp list categories WordPress Codex
    in your sidebar or wherever you want to display them as many times as you need.

    And yes, any post can be in multiple categories.
    Signature

    {{ DiscussionBoard.errors[1606744].message }}
  • Profile picture of the author I.M.Retired
    Well, it sounded good and I did try all the suggestions, but it didn't work the way I wanted.

    I'm using a theme with one sidebar. I have 'View Listings' as the title of the first set of categories. Under that I have the various category names.

    So I dragged a second category widget under the fist one. I named the second category list 'Communities.' I then created a list of community categories and used the 'Communities' category as the parent.

    I then edited the posts and put a link in the appropriate community.

    Should have worked perfectly? But it didn't.

    What I got in the second category list was all the categories duplicated from the first category list, plus the new link in the second category. Nothing I could do would remove the duplicate list.

    I think I'll go and get a beer! Wait - it's too early in the day. Better go and eat some more truffles! That will fix it, for sure!

    But thanks for all the suggestions here. I'll try again later.
    {{ DiscussionBoard.errors[1606893].message }}
    • Profile picture of the author rosetrees
      Val - I think the "Category Manage" widget will do what you want. You choose which categories it displays and you can have multiple widgets.
      {{ DiscussionBoard.errors[1606899].message }}
    • Profile picture of the author Istvan Horvath
      Originally Posted by Val.S. View Post

      Should have worked perfectly? Hmmm
      I've said above that in that way won't.

      In the standard Category widget you can NOT include/exclude categories. And that's exactly what you need to have displayed different set of categories.

      If you are reluctant to edit your sidebar code, you may want to replace the default cat widget with this:
      WordPress › Extended Categories Widget WordPress Plugins
      (the first one should do the job:
      Quote:
      Select which categories to show. (Requires WordPress 2.5.1 or higher).
      )
      Signature

      {{ DiscussionBoard.errors[1606917].message }}
      • Profile picture of the author magentawave
        Yes the one you mentioned here works perfectly for having different posts in two different category widgets!

        Thanks!

        Steve



        Originally Posted by Istvan Horvath View Post

        I've said above that in that way won't.

        In the standard Category widget you can NOT include/exclude categories. And that's exactly what you need to have displayed different set of categories.

        If you are reluctant to edit your sidebar code, you may want to replace the default cat widget with this:
        WordPress › Extended Categories Widget WordPress Plugins
        (the first one should do the job:
        Quote:
        )
        {{ DiscussionBoard.errors[2638683].message }}
  • Profile picture of the author I.M.Retired
    Hi Rosetrees - thanks for the suggestion. I am off to download the plugin, but won't be able to test it until later today as I have to go out soon. But it looks like a good plugin! I'm keen to try it out.
    {{ DiscussionBoard.errors[1606908].message }}
  • Profile picture of the author mattalways
    Ok so I was right in what you wanted. Two sets. You are going to need to use the tags for your secondary set of categories as WP only allows you to have one set of categories. I'm trying to think of a work around. I'll post when I think of one.

    I wanted to develop a classifieds site using WP but needed for there to be the categories (Buy, Sell, personals, etc) and I needed the area categories as well (Ontario > Toronto). I eventually just coded my own software to handle this as WP had no easy quick way to implement it.
    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[1606914].message }}

Trending Topics