Category post query problem
-
Okay, my main page is posts from all my categories but 1, then I have a separate page that posts everything from the category that isn’t on the main page.
My code in the page is this:
<?php query_posts('cat=341&showposts=6'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <article id="article-inspir" class="drop-shadow curved curved-hz-1"> <header class="inspir-header"> <div class="inspir-title"> <h1><?php the_title(); ?></h1> </div> <!--inspir-title--> <div class="inspir-date"> <?php the_time('j F, y') ?> </div> <!--inspir-date--> <div style="clear: both;"></div> </header> <!--inspir-header--> <footer class="inspir-footer"> <div class="inspir-cat"> <?php the_author(); ?> </div> <!--inspir-cat--> <div class="inspir-tags"> <p><?php the_excerpt(); ?></p> </div> <!--inspir-tags--> <div class="inspir-comments"> <a href="">comments(0)</a> </div><!--inspir-comments--> <div style="clear: both;"></div> </footer> <!--inspir-footer--> </article> <!--article-inspir--> <?php endwhile; endif; ?>
I have 2 posts in that article and it’s posting them in the right parts and then after the </article> tag, it’s posting the full post. No title or anything, just the full post.
Thanks
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Category post query problem’ is closed to new replies.