Viewing 2 replies - 1 through 2 (of 2 total)
  • I am looking to disable pagination for one of my custom post types too.

    Hi @rakeshraj, @mssbee,

    There’s no option to do that. However, a simple CSS like the following should work

    .ast-pagination {
        display: none;
    }

    The CSS above will hide the pagination on all of the Archive pages, including the Blog posts page. If you would like to hide the pagination for a certain Archive page, you can just add the class of that Archive page.

    For example, in my case, I have a CPT called Books with a taxonomy called Genres. If I only want to hide the pagination for Genres, then my code will look like below

    .tax-genre .ast-pagination {
        display: none;
    }

    I got the .tax-genre class from here.

    I hope it will help.

    Kind regards,
    Herman ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to disable pagination for custom post type/template’ is closed to new replies.