Forums

[Plugin: Simple Tags] Group Tags (5 posts)

  1. ellena_l
    Member
    Posted 3 years ago #

    Hello everyone
    I'm not very good in php and i'm using simple tags plugin.

    I wonder is there any possibility to group tags and display them by groups.

    I.e.:
    I have few posts with tags = green, blue, bag, skirt, sandals, boots
    I want to group them by the following: color, shoes, cloth etc
    I want them to be displayed in the blog in the following way:
    <h2>Colors</h2>

  2. green (10)
  3. blue (03)
  4. (10) - number of posts

    And that would be great if I could manage them through the Simple Tags Plugin. Is there any way to do it?

  • d910qf
    Member
    Posted 3 years ago #

    Not a simple way - you either need to use conditional statements in php in your template:

    <h2>Colors</h2>
    <?php $colours = (brown, blue, pink, yellow, orange, red);
    $tags = get_the_tags();
    foreach ($tags as $tag) {
    if (in_array($tag, $colours) {
    echo "

  • .$tag."
  • ";
    }
    }
    ?>

    Something like above, or you need to write a plugin that has additional taxonomies for colours, size, cloth etc.

    I might be writing something that allows this soon....

  • layabozi
    Member
    Posted 3 years ago #

    Hi,
    I'm also needing to add a list of tags on my web, that includes only some of them.
    Grouping tags would be a great solution, i have search around, and seems there is no plugin that does this. I guess it should be that you select certain amount of tags to belong to an specific group, and then the option to publish either one group, or some of them, or all.

    So.. basically, nothing like this yet. Or have you find something already?
    If so, please let me know. Thanks!

  • layabozi
    Member
    Posted 3 years ago #

    I found this plugin xili-tidy-tags. and it works great

    http://wordpress.org/extend/plugins/xili-tidy-tags/

  • joernroeder
    Member
    Posted 3 years ago #

    Thanks for sharing this Link! This is absolutely what im looking for…

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.