WordPress.org

Ready to get started?Download WordPress

Forums

Is it possible to create tag groups? (5 posts)

  1. pt1985
    Member
    Posted 2 years ago #

    Hello Everyone,

    i'm stuck with a project and can't figure out how to do what they want.
    I hope someone here can help me out. Let me explain:

    Posts need to have tags assigned to them but the tags also need to be grouped.

    For example:

    I have a time period that is 1000-1500 late middleages (group-tag)
    Crusades (tag)
    Mongolian Empire (tag)
    Mayan (tag) (also in 1500-1700 renaissance)

    and the time period 1500-1700 renaissance (group-tag)
    Reformation (tag)
    Golden Age (tag)
    Mayan (tag) (also in 1000-1500 late middleages)

    Then you can sort on group-tag and also on the single tag.

    But i got stuck with a few things one of course is the group tags i could not find a solution for this myself and if i wanted to use taxonomy's you cant have double names so mayan wil become mayan-2 or something. So sorting wont work anymore and display tags with the articles would result in "mayan, mayan-2" and that is not what they want.

    I hope someone can help me out, cause i'm going nuts with this problem.

    Thanks in advance,

    Patrick.

  2. Jonas Grumby
    Member
    Posted 2 years ago #

    You can't have 2 tags that have exactly the same name but are assigned to different posts. There is no way around that. You could have one called Mayan 1000-1500 and one called Mayan 1500-1700.

    What about using categories and tags instead of just tags?

    You may also want to look at this plugin
    http://wordpress.org/extend/plugins/query-multiple-taxonomies/

  3. vjpo
    Member
    Posted 2 years ago #

    Not the answer, only some thoughts.
    Terms have a term_group parameter. This feature not documented, and not fully baked. But it's possible to use. You can check this plugin http://wordpress.org/extend/plugins/tag-or-category-term-group-order/
    The problem in your case that one term can be assigned only to one term_group (as I understand). You can resolve this problem by combining tags and categories, as Jonas Grumby advised. You even can create special custom taxonomy for dubbing terms (but the plugin doesn't support custom taxonomies).

    If you are php skilled person, try to research about WordPress custom taxonomy meta. For example link, link

  4. pt1985
    Member
    Posted 2 years ago #

    Okay,

    Thanks for the replies and suggestions.
    I'll try it out.

  5. vjpo
    Member
    Posted 2 years ago #

    I forgot to mention one simple thing that can help - Custom Fields.

Topic Closed

This topic has been closed to new replies.

About this Topic