I want the ability to move the default wp pagination (ex: links to previous or next page) and comments form on a post to specific areas of my template using element hooks. How do I disable the out-of-box hooks and what wp functions do I need to use to solve my question?
PS I tried this several times and couldn’t find a way to make this work the way I wanted. This is not a lazy post 🙂
I’m not getting the results I want for moving the pagination where I want it to be. Below is the code from the post you mentioned with my updates to it. If you look at the example blog post (https://kelleyranaudo.com/healthy-holiday-vibes/) you will see that the pagination is above the comments area and not displaying in the proper div container with the text called “Custom pagination should go here”.
add_action( ‘generate_before_comments_container’, ‘tu_move_post_navigation’ );
function tu_move_post_navigation() {
if ( function_exists( ‘generate_content_nav’ ) && is_single() ) {
generate_content_nav( ‘nav-below’ );
}
}
?>
Custom pagination should go here