Created
February 10, 2017 14:15
-
-
Save pmciano/f9a40f2f2cb71ec0c8dafccb94467c43 to your computer and use it in GitHub Desktop.
Remove Guides Posts 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' => 'guides' ) ) | |
); | |
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