Page for specific Category doesn't display all posts
-
Hey folks!
I am new to PHP and WordPress, and I have a simple problem which I’ve been struggling with this past weekend.
I have a page that shows all posts for a specific category, however it only displays 10 posts.
How can I have “next 10” / “previous 10” links? Is this a simple solution?
Thanks! 🙂
Here is my code so far:
<?php
/*
Template Name: Blog_Page
*/
?><?php get_header(); ?>
<div>
</br></br><div id=”heading”>
<h1>Blog Articles<h1>
<HR width=”750px” color=”#87b2bd” size=”2″>
</div><div id=”content”>
<?php
query_posts(‘cat=4,16’);
while (have_posts()) : the_post();
?><h2>” rel=”bookmark”><?php the_title(); ?></h2>
</br>
<span>Date posted: <?php the_date(); ?></span>
</br></br>
<p><?php the_excerpt(); ?></p>
</br>
<span class=”comment-link”><?php comments_popup_link(‘Leave Comment’, ‘1 Comment’, ‘% Comments’, ‘comments-link’, ”); ?></span>
</br></br>
<HR width=”750px” color=”#87b2bd” size=”1″>
</br></br><?php endwhile; ?>
</div>
</div>
The topic ‘Page for specific Category doesn't display all posts’ is closed to new replies.