Previous Custom Post Types
-
I have created a template that displays custom post types based on the index.php of my theme. Then I created a page to which I assigned that template. This works fine except for the fact that the “previous” and “next” links do not work and I don’t know why. The links are correct (/page/2), but the same posts are loaded. Could anyone tell me if this is because of a mistake in the template? The template can be seen here. I later replaced the loop that you see there to set the number of displayed posts to 100 so that navigation is not needed, so the template currently uses:
<?php $args = array( 'posts_per_page' => 100, 'post_type' => 'blog' ); query_posts($args); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- The topic ‘Previous Custom Post Types’ is closed to new replies.