Thanks for your reply, Animesh.
You correctly inferred that I’m using a plugin called Content Blocks (Custom Post Widget) to insert content blocks in my WordPress posts.
Unfortunately, the function you provided has no effect when I add it to the plugin and crashes my site when I add it to my theme’s functions.php.
JP Related Posts continue to appear in my content block and not on the post.
I’m able to hide JP Related Posts (and JP Likes, for that matter) with CSS. Oddly, this hides related posts for the entire page, although I’ve targeted only the Content Blocks div. But at least related posts aren’t showing up in the content block.
The Hide Jetpack Likes css works as intended, hiding JP Likes in the content block only.
/* Hide Jetpack Related Posts for Content Blocks */
div.content_block .jp-relatedposts {
display: none !important;
}
/* Hide Jetpack Likes for Content Blocks */
div.content_block .jetpack-likes-widget-wrapper {
display: none;}
-
This reply was modified 3 years, 9 months ago by
bobjones.