Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'pre_get_posts', 'exclude_category' );
- function exclude_category( $query ) {
- if ( $query->is_home() && $query->is_main_query() && ! $query->is_feed() ) {
- $query->set( 'cat', '-90,-91,-206,-212,-208,-210,-209,-211,-207,-266,-267,-270,-272' );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement