show *ALL* posts from one category, not just 5
-
Hi, wanted a page named ‘galerie’ to show all posts from one category so I added this bit of logic to my page.php:
if (is_page('galerie')) { $galposts = get_posts('category=3'); foreach($galposts as $post) : setup_postdata($post); ?> <h2><a>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></h2> <div class="thecontent"><?php the_content(); ?></div> <div class="postspace"> </div> <?php endforeach; ?> </div> <?php } else {
However it shows only the last five (5) posts. Why? And what to do to make it show all!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘show *ALL* posts from one category, not just 5’ is closed to new replies.