WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Ahni
    Member
    Posted 1 year 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!

    http://wordpress.org/extend/plugins/tag-groups/

  2. Chris
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic