Update custom taxonomy post number limits


<pre>
function aviweb_change_posts_per_page( $query ) {
    if (is_tax( 'custom_taxonomy' ) ) { 
	   $query->set( 'posts_per_page', 3 );
	}
}
add_filter( 'pre_get_posts', 'aviweb_change_posts_per_page' );
</pre>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s