List custom posts by custom taxonomy

Solution: <?php $blocktaxonomy = wp_get_object_terms($post->ID, ‘appearson’); $blocktaxonomy = $blocktaxonomy [0]; query_posts( array( ‘post_type’ => ‘block’, ‘appearson’ => $blocktaxonomy – >name ) ); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

Display Next/Prev when looping Custom post-types archive?

next_posts_link() and previous_posts_link() use the global $wp_query->max_num_pages to determine if there are more pages. since you’re using a new instance of WP_Query, the $wp_query global does not relate to this new query. Try explicitly passing $loop->max_num_pages to the function: next_posts_link( ‘Next’ , $loop->max_num_pages ); or if you’re not using the original query, call query_posts() with … Read more