Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wp_posts_query( $query ){
- if( ! is_admin()
- && $query->is_post_type_archive( 'casestudies' )
- && $query->is_main_query() ){
- $query->set( 'posts_per_page', 100 );
- }
- }
- add_action( 'pre_get_posts', 'wp_posts_query' );
Add Comment
Please, Sign In to add comment