Category Page Only Displaying Latest Post Made In That Category
-
Hey there.
For some reason, my category page for a certain category is only displaying one post made in that category – the latest one. Even though I know there are 2 or 3 (WordPress Dashboard shows the stats for each category)
Try it out yourself.
https://fidotraining.comThe top bar are the categories, “Training” and “The Basics” have 2 or 3 articles each, yet only one shows up. Here’s my code.
<?php get_header(); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post-container"> <div class="post-header"> <div class="post-avatar"></div> <div class="post-title"> <?php the_title(); ?> </div> <div class="post-meta"> Category: <?php the_category(', ') ?>. Tags: <?php the_tags(__(''), ', ', ''); ?>. <?php edit_post_link('Edit', ''); ?> </div> <div class="clear"></div> </div> <div class="post-content"> <?php the_excerpt(); ?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read More...</a></p> </div> <div class="clear"></div> </div> <div style="height:15px;width:100%;padding:0px;border-bottom:1px dashed #ccc;margin:0px 0px 15px 0px;"></div> <?php endwhile; ?> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php endif; ?> </div> <!--/content --> <?php get_sidebar(); ?> <?php get_footer(); ?>
Help appreciated alot!
Thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Category Page Only Displaying Latest Post Made In That Category’ is closed to new replies.