• Hello Generatepress team! I am struggling to remove pagination from my whole site both homepage and archive pages, I am using this code and it only removes the pagination from the home page but not from archive pages.

    add_action( 'wp', function() {
        if ( is_front_page() ) {
            add_filter( 'generate_show_post_navigation', '__return_false' );
        }
    } );

    Is there any way to remove the pagination globally? I am using the snippet code plugin to insert the code.
    Thanks

Viewing 1 replies (of 1 total)
  • Hi there,

    You can remove the action hook and the condition and just use add_filter( 'generate_show_post_navigation', '__return_false' ); if you want it to apply on all archive pages and the blog index.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove Pagination From whole site’ is closed to new replies.