Created
July 6, 2020 14:28
-
-
Save amberhinds/0b733af08ac4325a2588f6e79a865c17 to your computer and use it in GitHub Desktop.
hide category from UAG post grid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remove Featured Provider posts on blog grid on home page | |
add_filter( 'uagb_post_query_args_grid', function( $args ){ | |
global $post; | |
if ( isset( $post ) && isset( $post->ID ) && 1757 === $post->ID ) { | |
$args['category__not_in'] = array( 2276 ); | |
} | |
return $args; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment