Category page only showing 5 posts
-
I’ve been asked to look at a WordPress site where the category pages will only show 5 posts. I can’t seem to get any response from the author of the theme used and I can’t find any documentation to look through. I’m presuming the problem is with the php and I’ve found similar questions but the code for the solutions doesn’t seem to match with the code currently in the category.php file.
The current code which I presume is the area of the problem is:
<?php global $post; // required ?>
<div class=”movecenter”>
<?
$args = array(‘category’ => 4); // include category 4
$custom_posts = get_posts($args);
foreach($custom_posts as $post) : setup_postdata($post);
?>Can anybody advise what I need to add/amend to get it to pick up all the posts in the particular category? If I change the get_posts($args) to query_posts($args) then this shows more post but these are not limited to the individual category.
Any help would be greatly appreciated.
- The topic ‘Category page only showing 5 posts’ is closed to new replies.