Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function oliverio( $query ) {
- if ( is_admin() || ! $query->is_main_query() )
- return;
- if ( $query->is_main_query() && $query->is_category( 'gastronomia' ) ) {
- $query->set('posts_per_page', 5);
- }
- }
- add_action( 'pre_get_posts', 'oliverio', 1 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement