Created
June 16, 2016 18:34
-
-
Save chaselivingston/cfa227838910503ccf26f7c3425ebe5e to your computer and use it in GitHub Desktop.
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
function jetpackme_exclude_related_post( $exclude_post_ids, $post_id ) { | |
// $post_id is the post we are currently getting related posts for | |
$exclude_post_ids[] = 871; | |
return $exclude_post_ids; | |
} | |
add_filter( 'jetpack_relatedposts_filter_exclude_post_ids', 'jetpackme_exclude_related_post', 20, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment