How to echo tag description on loop-page.php using WPeC 3.8

I’m trying to display the ‘Tag Description’ on my tagged pages. I’ve added an if statement to loop-page.php already to only show custom text when a tagged page is being displayed…

<?php } elseif ( is_tax ( 'product_tag' ) ){ ?><h1 class="entry-title"><?php the_title(); ?> print out this text on page</h1>

… but I don’t know the code to output the tag description.

Read More

Does anyone know the code to display the tag description? I want it to go after the H1 in the above code. I’m trying to output the description that is entered when you go into WordPress Admin>Products>Product Tags>Description using WPeC 3.8.

I’m using the Twenty10 theme, WPec 3.8 and WP 3.1

Thanks for your help

ChainsawDR

Related posts

Leave a Reply

1 comment

  1. get the term by its slug and echo out the descriptions

    elseif {is_tax ( 'product_tag' ) ){ 
      $term_slug = get_query_var( 'term' );
      $taxonomyName = get_query_var( 'taxonomy' );
      $current_term = get_term_by( 'slug', $term_slug, $taxonomyName );
      ?><h1 class="entry-title"><?php echo $current_term->description; ?></h1> <?php
    }