Custom Post Type Pagnation issue
-
I’m currently trying to set it up so that the homepage (static) display the most recent posts, but only their featured image.
Alongside that, I’m trying to add pagnation to it, which is in most recent order.
When I use the WP Pagenavi plugin, it only displays “Page 1 of 1” Instead of the rest.
I’m relatively new to all of this, so any help would be appreciated.
The code im using is below:
<?php $thumbnails = get_posts('numberposts=6'); foreach ($thumbnails as $thumbnail) { if ( has_post_thumbnail($thumbnail->ID)) { echo '<a href="' . get_permalink( $thumbnail->ID ) . '" title="' . esc_attr( $thumbnail->post_title ) . '">'; echo get_the_post_thumbnail($thumbnail->ID, 'thumbnail'); echo '</a>'; } } ?> </div> <!--end of options container_12 grid_8--> <div class="clearboth"></div> <?php endwhile; // end of the loop. ?> <?php wp_pagenavi(); ?>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Custom Post Type Pagnation issue’ is closed to new replies.