Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'pre_get_posts', function( $query ){
- $id_to_exclude = array ( 129 );
- if ( is_page(379) ){
- $query->set('category__not_in', $id_to_exclude);
- }
- } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement