Skip to content

Snippet: Move Next/Previous Links To The Top Of Posts

function my_move_next_prev() {

	// Remove them from the bottom
	remove_action( 'wpex_hook_main_bottom', 'wpex_next_prev' );

	// Add them to the top
	add_action( 'wpex_hook_main_top', 'wpex_next_prev' );

}
add_action( 'init', 'my_move_next_prev' );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top