Tag Groups
[resolved] can I display term groups on term pages (3 posts)

  1. Ahni
    Posted 3 years ago #

    Hey there. I've been waiting for a plugin like this for ages!! Thank you,

    I'm wondering though, is there a way to display relevant term groups on my term pages (NB: I'm using the plugin to create groups in a non-hierarchical taxonomy). For example, if I'm on the term page for "apples" which I assigned to the group "red" can I show all the terms in "red". If possible, I need a way to do this 'automatically' because I have about 20 different term groups and 400 terms. Thanks!


  2. Chris
    Plugin Author

    Posted 3 years ago #

    Hi Ahni,
    Could you please try the following code in your theme page that displays the tags (possibly 'archive.php'):

    $term = get_queried_object();
    echo tag_groups_cloud( array( 'include' => $term->term_group, 'show_tabs' => 0 ) );

    This is supposed to show a simple tag cloud (without a tab - or set show_tabs to 1) for the group that the presently displayed tag is in.

  3. Ahni
    Posted 3 years ago #

    Chris, you are awesome! :D It worked perfectly with the code you provided.

    Thank you so much!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Tag Groups
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic