check to see if tag in group
-
Hello,
Thank you for this great plugin. I think I am close to getting the code correct but can’t quite get there.I have a tag group ‘authors’ and in my archive.php file, if someone clicks on a tag that is in the group ‘authors’ I want it to say “Authors tagged…” instead of “Posts tagged…”
<?php } elseif(is_tag()) { // Load the tag groups if ( function_exists("tag_groups_cloud") ) { $tag_group_ids = get_option( 'tag_group_ids', array('include' => '1' ), true ); if ($tag_group_ids[0] == '1') { ?> <h2>Found <?php echo $total_results;?> article(s) for author '<?php single_tag_title(); ?>'</h2> <?php } else { ?> <h2>Posts Tagged '<?php single_tag_title(); ?>'</h2> } } ?>
Right now nothing is going into the authors loop, I think it’s because what you would click on is the author name, not the tag group?
Thank you in advance.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘check to see if tag in group’ is closed to new replies.