• Resolved JayBirdSlim

    (@jaybirdslim)


    Would it be possible to display only the group title of a selected item.

    For example if a person were to click on on tag 1 which is in the Keywords “group” I want it to display not only everything associated with tag 1 but above that as a headline display “Keywords”.

    Can I echo on a page template somehow?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • I think that has not much to do with the plugin but with the theme templates. Depending on your theme, the relevant file might be tag.php where you could try something like

    <?php if ( is_tag() ) echo "Keywords"; ?>

    or

    <?php if ( is_tag() ) single_tag_title("Keyword: ", true); ?>

    (I haven’t tried it)
    Most templates anyway use a headline (“You are currently browsing …”) which you could simply edit.

    Hm… or did you mean to display “group” on top? I think I misunderstood your question before, sorry.

    You could try this in your tag template:

    <?php
     $term = get_queried_object();
     $tag_group_labels = get_option( 'tag_group_labels', array() );
     echo 'Group name: ' . $tag_group_labels[$term->term_group];
    ?>

    Have some troubles with üäö when i output groupname in my theme-functions..how can is fix that?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Just displaying the group title’ is closed to new replies.