Hi guys, I’m trying to set up a custom template that calls a loop with a specific category. I already have the loop itself working, but I can’t seem to display the pagination as in the regular wordpress loop.
Here is my code summed up. I can post the real (long) one if you wish:
<div class="left"> <ul class="articles"> <?php if (have_posts()) : ?> <?php $thePosts = get_posts('category=13510'); foreach($thePosts as $post) : setup_postdata($post); ?> LOOP INFO HERE <?php endforeach; ?>
- The topic ‘Pagination with get_posts’ is closed to new replies.