Support » Plugin: Show Post Categories » Can I filter display by Tag Group?

  • Resolved gavin74

    (@gavin74)


    Love your plugin.
    I’m also using Tag Groups.

    Is there any way I can use the [show_post_categories show=”category”] shortcode and filter by Tag Group too?

    For example, I have the following Category hierarchy:

    Melanthaceae
    -Chamaelirium
    –Chamaelirium luteum
    Where Melanthaceae is tag group “Family”, Chamaelirium is tag group “Genus”, Chamaelirium luteum is tag group “Species”.

    A post may all three categories, but I want to be able to display the category if it belongs to tag group “Genus”.

    e.g.
    Genus: [show_post_categories show=”category” tag-groups=”Genus”]

    http://46.32.240.41/foundpharmacy.co.uk/2020/05/27/helonius-root-d65/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author willemso

    (@willemso)

    Hi Gavin,

    I am not familiar with “tag-groups” but did a quick search on Google.
    So far as I can see they use Custom Taxonomy to group your keywords.

    If you know this Taxonomy, you can add it to the shortcode like this: taxonomy="BLAH"
    In case you do not know them, you can use a tool I included to figure this out:
    [show_post_categories show="taxonomy"]

    This would list the Taxonomy, that you can add to the previous short code.

    Hope this helps you.
    Kind regards, Olivier

    Thread Starter gavin74

    (@gavin74)

    Thanks, but it turns out that they’ve stored the groups in the wp_options table rather than taxonomy.

    Plugin Author willemso

    (@willemso)

    Hi Gavin,
    yes – it seems to be a plugin using its own functionality instead out of the box WP.

    I am sure it´s doable to tweak my current plugin to make this work.
    However being honest I believe this would be more something that should be offered by the Tag Group Plugin as I would need to figure out the way their system works.

    I will not be able to deliver this, looking at the time and effort I would need to spend, and looking at my current backlog and projects.

    I am sorry that I can not assist you in this. I would suggest to look at default WP & Taxonomy if there is nothing fancy needed for your site that can only be delivered by the mentioned plugin.

    Thread Starter gavin74

    (@gavin74)

    No problem. Thanks for looking into it and helping me to work it out.

    Plugin Author willemso

    (@willemso)

    you are welcome

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can I filter display by Tag Group?’ is closed to new replies.