Limit posts in each category (taxonomy)
-
Hi,
I’ve one custom post type name ‘blog’ and another taxonomy by name ‘press’ in which I created 4 categories. I want to display 20 posts (of custom post type) in each of these categories (i.e. taxonomy ‘press’). I’ve created taxonomy.php and this is my code
<?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'category-for-tax', get_post_format() ); ?> <?php endwhile; ?>
This is displaying 10 posts. I agree I’ve to go the wordpress settings to make it 20 BUT for my general posts I want only 10. Only for this custom post type, I want 20 per page.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Limit posts in each category (taxonomy)’ is closed to new replies.