I’m using the Post Image plug-in and have this code on my sidebar to show all the image thumbnails of recent posts in a certain category:
<?php $posts = get_posts('category=6&showposts=40'); foreach ($posts as $post) : start_wp(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Buy this..."><?php post_image('default_image', 'use_thumb=1'); ?></a> <?php endforeach; ?>
It’s working fine, but its only showing the last 5 posts. Even if I change it so it’s just the post content (the_content) instead of the plug-in info, last five posts. Even if I delete the entire content of the main page, still only five.
I’ve looked through my settings and every plug-in setting I know of I’ve even deactivated all my plug-ins. I’ve opened every file in my template and searched for anywhere that has “showposts” and changed and removed it and nothing.
Why would this be showing only 5 posts??
- The topic ‘Only showing 5 posts’ is closed to new replies.