Tech and Coding

Posts related to tech and coding

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.