Home › Forums › Back End › Custom Taxonomy Archive issues › Re: Custom Taxonomy Archive issues
there are a few thing that could work
make sure you include a paged variable in your query string to the WP_Query
you can find the paged variable like this
$paged = ( get_query_var(‘paged’) ) ? get_query_var(‘paged’) : 1;
also in custom queries sometimes a hack is needed for the pagination to work,change the value of the wp_query global to the value of your query .
$temp = $wp_query;
$wp_query = null;
$wp_query = $my_query;
use the structure
have_posts() ) : while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
and after the endif place your pagination links and reset the global query object with the temp you have stored
php next_posts_link ()
$wp_query = $temp; ?>