Support » Themes and Templates » Display tag name when navigating

  • Resolved sylvioros

    (@sylvioros)


    Hello folks,

    I hope you guys can help me. I want to display the TAG NAME when you are navigating through it, as it does when you are in a category. For example:

    You are in my blog and click in the tag DESIGN, then the posts tagged as DESIGN are shown, but there is nothing to tell you that.

    I tried to use the same code of categories just changing the template tags, but didn`t work.

    <?php /* If this is a category archive */ if (is_category()) { ?>
    <h2 class=”pagetitle”>Você está em: ‘
    <?php single_cat_title(); ?>
    ’</h2>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The WordPress Default theme archive.php has this example:

    <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
    		<h2 class="pagetitle">Posts Tagged ‘<?php single_tag_title(); ?>’</h2>
    Thread Starter sylvioros

    (@sylvioros)

    Thank you very much Michael !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display tag name when navigating’ is closed to new replies.