Skip to content

Instantly share code, notes, and snippets.

@dartiss
Last active November 15, 2017 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dartiss/1735a14c83bda534339311dc0364e155 to your computer and use it in GitHub Desktop.
Save dartiss/1735a14c83bda534339311dc0364e155 to your computer and use it in GitHub Desktop.
Do not add any context below each Jetpack Related Post
<?php
add_filter( 'jetpack_relatedposts_filter_post_context', '__return_empty_string' );
?>
@dartiss
Copy link
Author

dartiss commented Nov 15, 2017

This simple filter will remove the context below each (normally it will say why it's shown, for example it's in the same category). I remove this because I don't use categories but it still displays this as the context reason.

Add to your theme's functions.php.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment