WordPress.org

Ready to get started?Download WordPress

Forums

Best way to organize categories (4 posts)

  1. databell96
    Member
    Posted 7 years ago #

    I'm a newbie to WP, so I'm trying to figure the best way to organize this. I want to be able to use WP as an organizational tools for a series of musicians. Each musician has their own set of sublinks like Tour Dates, Audio Files, Bio, etc. What I'd like to do is have each one of these be a subcategory for the artist. Simple enough. So I go to the Manage tab and add new categories and sub-categories. Again, no problem here. Pretty easy.

    However, here's where things get confusing to me. Each sub-category has it's own ID number and what I'd really like to have instead is that there's a main ID number for the artist and then an ID number for each sub-category than can relate to the main category so the sub-category's ID is always the same for each artist. In other words, the Bio is always ID#!, Audio is ID#2 and so on. So that I can create a series of buttons in the content div that always stay the same since they are just looking for ID#'s for the sub-category since we're already in the main category. So instead of http://www.yoursite.com/?cat=456 instead is could be let's say http://www.yoursite.com/?cat=2+subcat=1 or something like that. Hopefully I'm making some sense here since I'm really a designer and not necessarily a programmer. Is this possible with or without a plugin? Any guidance would be greatly appreciated.

  2. moshu
    Member
    Posted 7 years ago #

    I (think) I understand what you are asking but that doesn't work. Categories (like posts) in the database get always the next "available" number, meaning you cannot have two categories with the same ID#. Databases just don't work in that way.

  3. databell96
    Member
    Posted 7 years ago #

    Let me try to explain it a little better. I know categories cannot have the same ID. What I'm trying to do on many sites you'll see a URL like this:

    http://www.yoursite.com/index.php?cat=10+sub=15

    So in this case, it's loading a template from index.php and then looking for the category number 10 and the sub-category number 15 that is in the main category. This was sub-category 15 can always be the same topic. Let's say Biography and it stays the same for each of the main categories.

  4. newflesh
    Member
    Posted 7 years ago #

    What about using permalinks? Then you would get links like http://yoursite.com/category/hank-hill-band/tour-dates

    If you only have artists as categories, there's also an option to replace "category" with something more suitable like "artists".

    Edit: seems I missed something about you wanting to use the info for dynamic linking. Sorry. I let the above stand anyway. :)

Topic Closed

This topic has been closed to new replies.

About this Topic