cambia le impostazioni della query principale nelle tassonomie (ma è adattabile per qualunque loop) #loop #taxonomy #postNumber #number
<?php
add_action('pre_get_posts', 'change_tax_num_of_posts' );
function change_tax_num_of_posts( $wp_query ) {
//verifico di trovarmi in una tassonomia e nella query principale
if( is_tax() && $wp_query->is_main_query()) {
$wp_query->set('posts_per_page', -1);
$wp_query->set('orderby', 'title');
$wp_query->set('order', 'ASC');
}
}