All Permalinks pull up the same page…
-
I changed some code on the index page to exclude a category, but now all article links are opening the same page…
This is what I added in place of the standard “have_posts()” code:
<?php query_posts($query_string . '&cat=-8'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <!-- Display the Title as a link to the Post's permalink. --> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> <div class="entry"> <?php the_content(); ?> </div> <div class="feed"> <p>Share On</p> <a href="#" class="tw_sml"></a> <a href="#" class="in_sml"></a> <a href="#" class="gp_sml"></a> <a href="#" class="fb_sml"></a> </div> <?php endwhile; else: ?> <p>Sorry, no posts matched your criteria.</p> <?php endif; ?>
Please help! Thank you-
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘All Permalinks pull up the same page…’ is closed to new replies.