Hide JetPack’s ‘Related Post’ feature in WordPress

I found this link useful in doing that.
I removed the ‘Related Posts’ from my posts by adding the following code to the bottom of my theme‚Äôs functions.php

function jetpackme_remove_rp() {
    $jprp = Jetpack_RelatedPosts::init();
    $callback = array( $jprp, 'filter_add_target_to_dom' );
    remove_filter( 'the_content', $callback, 40 );
add_filter( 'wp', 'jetpackme_remove_rp', 20 );

That’s all.

Leave a Comment

Your email address will not be published. Required fields are marked *