function my_move_related_posts() { // Remove related posts from original position remove_action( 'yummy_bites_after_post_content', 'yummy_bites_related_posts', 35 ); // Add related posts earlier (before comments) add_action( 'yummy_bites_after_post_content', 'yummy_bites_related_posts', 25 ); } add_action( 'init', 'my_move_related_posts' );