Hey Guys,
I am pulling two custom post types into a loop and having a hard time getting the pagination to show, what am I doing wrong? 
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array
(
'post_type' ?> array('bingo_reviews', 'new_bingo_sites'),
'posts_per_page' => 1,
'paged' => $paged,
'caller_get_posts'=> 1
);
$custom_query = new WP_Query($args);
while($custom_query->have_posts()) : $custom_query->the_post(); ?>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt_rereloaded('45','More','','div','yes'); ?>
<?php endwhile; ?>
<?php wp_reset_postdata(); // reset the query ?>
<div style="padding: 12px 0px">
<?php wp_pagenavi(); ?>
</div>
try this
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array
(
'post_type' ?> array('bingo_reviews', 'new_bingo_sites'),
'posts_per_page' => 1,
'paged' => $paged,
'ignore_sticky_posts'=> 1
);
query_posts($args);
if (have_posts()) :
while(have_posts()) : the_post(); ?>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt_rereloaded('45','More','','div','yes'); ?>
<?php endwhile; ?>
<?php wp_pagenavi(); ?>
<?php endif; ?>
<?php wp_reset_query(); ?>
Thanks man, but no go unfortunately 
PrimaThemes said
try this<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array ( 'post_type' ?> array('bingo_reviews', 'new_bingo_sites'), 'posts_per_page' => 1, 'paged' => $paged, 'ignore_sticky_posts'=> 1 ); query_posts($args); if (have_posts()) : while(have_posts()) : the_post(); ?><?php the_title(); ?>
<?php the_excerpt_rereloaded(‘45’,’More’,’’,’div’,’yes’); ?> <?php endwhile; ?> <?php wp_pagenavi(); ?> <?php endif; ?> <?php wp_reset_query(); ?>
OrganicBeeMedia said
http://themeforest.net/forums/thread/custom-post-types-pagination-and-404-not-found-pages/32264 http://themeforest.net/forums/thread/custom-post-types-and-permalinks-in-wordpress-31-rc/39380 theres a few more threads on it also
Thanks man, I don’t have any pages created at all though 
RedHenry said
OrganicBeeMedia saidThanks man, I don’t have any pages created at all though
http://themeforest.net/forums/thread/custom-post-types-pagination-and-404-not-found-pages/32264 http://themeforest.net/forums/thread/custom-post-types-and-permalinks-in-wordpress-31-rc/39380 theres a few more threads on it also![]()
how are you registering the custom post types? and what is your permalink structure
OrganicBeeMedia said
RedHenry saidhow are you registering the custom post types? and what is your permalink structure
OrganicBeeMedia saidThanks man, I don’t have any pages created at all though
http://themeforest.net/forums/thread/custom-post-types-pagination-and-404-not-found-pages/32264 http://themeforest.net/forums/thread/custom-post-types-and-permalinks-in-wordpress-31-rc/39380 theres a few more threads on it also![]()
Through my functions.php file. I have made a template also called archive-bingo_reviews.php and my permalink structure is just / postname /
RedHenry saidtry adding something like the rewrite to your register_post_type(if you dont have it already)
OrganicBeeMedia saidThrough my functions.php file. I have made a template also called archive-bingo_reviews.php and my permalink structure is just / postname /
RedHenry saidhow are you registering the custom post types? and what is your permalink structure
OrganicBeeMedia saidThanks man, I don’t have any pages created at all though
http://themeforest.net/forums/thread/custom-post-types-pagination-and-404-not-found-pages/32264 http://themeforest.net/forums/thread/custom-post-types-and-permalinks-in-wordpress-31-rc/39380 theres a few more threads on it also![]()
register_post_type( 'archive_bingo_revoew',
array(
'rewrite' => array('slug' => 'bingo-review')
)
);
do you still use wp_reset_postdata(); in your loop?
try to move it after wp_pagenavi();
good luck 
