Home Forums Front-end Issues Pagination on custom WP_query Reply To: Pagination on custom WP_query

  • The only thing that tells me is that your term “cadeaux-anniversaire-femme” does not have enough posts in it to have more than one page.

    This would be determined by the number of posts per page set for the blog or the default number and would not be determined by the number is your custom query.

    Your code should probably not be done as a custom query but it should be done in a pre_get_posts action to alter the main query.

    The number of posts per page in the main query determines whether or not there are multiple pages and will not be affected by your custom query.

    Really, you should not be doing a custom query on a page that is already doing the same query. You should be altering the main query based on your inputs.