Pagination not working on custom query
-
I have a custom query for my homepage on my website comicville.net. The query pulls the latest from both reviews and news posts. For some reason, pagination nor ‘older entries’ links work. Here is my code:
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $latest = new WP_Query(array( 'post_type' => array('post', 'review'), 'posts_per_page' => 10, 'orderby' => 'date', 'order' => 'DESC', 'paged' => $paged )); ?> <?php if ($latest->have_posts()) : while ($latest->have_posts()) : $latest->the_post(); ?>
Any ideas what I’m doing wrong?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Pagination not working on custom query’ is closed to new replies.