Created
March 9, 2017 14:28
-
-
Save pmciano/636ba4ae4002ca5b0a68a5b8a5d92a1e to your computer and use it in GitHub Desktop.
Remove craft Category From Related Posts
This file contains 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
function jetpackme_filter_exclude_category( $filters ) { | |
$filters[] = array( 'not' => | |
array( 'term' => array( 'category.slug' => 'craft' ) ) | |
); | |
return $filters; | |
} | |
add_filter( 'jetpack_relatedposts_filter_filters', 'jetpackme_filter_exclude_category' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment