• Resolved astromono

    (@astromono)


    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; ?>

    Help?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pagination with get_posts’ is closed to new replies.