Display list of links to posts of Tag in Archive.php
-
Hi, I am trying to display a list of links in the archive after clicking on a tag. I’ve been referencing http://wordpress.org/support/topic/152904?replies=28 but it keeps showing up blank. Here is my code:
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> <h2 class="pagetitle"><strong> <?php single_tag_title(); ?></strong></h2> <?php $current_tag = single_tag_title("", false); ?> <ul><?php query_posts(array('cat'=>'0','tag_slug__and'=>array($current_tag),) ); while (have_posts()) : the_post(); ?> <li><a href="<?php the_permalink() ?>"<?php the_title(); ?></a></li> <?php endwhile; rewind_posts(); wp_reset_query(); ?></ul>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Display list of links to posts of Tag in Archive.php’ is closed to new replies.