wp-paginate in a custom post loop
-
Hello,
I’m having a pleasant afternoon, trying everything i can find to make this work. It did work before but no joy in my current theme.
I have a page with the following code in it. Does all the displaying of post loop but will not paginate
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $xib = new WP_Query( array( 'post_type' => 'exhibitions', 'posts_per_page' => 6, 'orderby' => 'menu_order', 'order' => 'ASC', 'paged' => $paged ) ); while ( $xib->have_posts() ) : $xib->the_post(); ?> <div id="recordwrap"> <div id="record" class="storycontent"> <p class="storytitle"><?php the_title(); ?></p> <?php the_content('more..'); ?> </div> <div id="featuredimg"> <?php if ( has_post_thumbnail()) { $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); echo '<a href="' . $large_image_url[0] . '" rel="shadowbox[ex]" title="' . the_title_attribute('echo=0') . '" >'; the_post_thumbnail('thumbnail'); echo '</a>'; } ?> </div> </div> <?php endwhile; ?> <?php if (function_exists('wp_paginate')) { wp_paginate(); } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘wp-paginate in a custom post loop’ is closed to new replies.