Tag archive showing all posts
-
I have tag archives which are (obviously) supposed to show only the posts with a certain tag. However, mine display the same posts whatever tag is meant to be showing.
For example:
https://www.davidfordfans.com/tag/state-of-the-union/
https://www.davidfordfans.com/tag/cheer-up/
https://www.davidfordfans.com/tag/songs-for-the-road/show the same, as do all the other tag pages.
I have Simple Tags installed, if that’s any relevance.What am I doing wrong? Here’s the code for it:
<?php single_tag_title('Currently browsing: '); ?></h1> <?php query_posts('cat=6'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="primary"> <h2><?php foreach((get_the_category()) as $cat) { echo $cat->cat_name . ' '; } ?>: <a>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> </div> <hr class="hide" /> <div class="secondary"> <div class="featured"> <dl> <dt>Comments:</dt> <dd><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></dd> </dl> </div> </div> <div class="clear"></div> <div class="divider"></div> <?php endwhile; ?> <?php else : ?> <?php endif; ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Tag archive showing all posts’ is closed to new replies.