Custom WordPress Query Pagination Not Working
-
Hi, I am like totally new to the wp query function on the php side of wordpress. I have been stuck on this issue for a while.
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(array('posts_per_page'=>get_option('premiumwd_blog_perpage') )); $loop = new WP_Query( array('paged'=>$paged, 'orderby' => 'menu_order') ); ?> <?php $show_category = exclude_header_cats(); $query = new WP_Query( 'cat='.$show_category ); ?> <?php if ($query->have_posts()) : ?> <?php while ( $query->have_posts() ) : $query->the_post(); ?>
Standard wordpress pagination on the footer, any clue on how to make this work?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Custom WordPress Query Pagination Not Working’ is closed to new replies.