The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Back End › WP posts per page on custom post type › Reply To: WP posts per page on custom post type
Just do
$query->set( 'posts_per_page', '-1' ); $query->set( 'orderby', 'name' ); $query->set( 'order', 'DESC' );