Jetpack

Enable Related Posts @ Dashboard: Jetpack > Settings > Related Posts

Remove by adding the below HTML to functions.php @ Theme Editor:

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

Relocate Related Posts (after removing at functions.php as above) with Jetpack’s Related Posts block.


Reference

  1. Inc., W., 2021. Customize Related Posts. [online] Jetpack. Available at: <https://jetpack.com/support/related-posts/customize-related-posts/#delete> [Accessed 29 October 2021].

--- :: Skyferia Tech's Related Posts :: ---