• I have a custom post type named “product” that I pull in through a page called “products”. I have pagination links on that page via the wp_pagenavi plugin, and when I click the next page link, my URL looks like this “…/products/page/2/” which seems correct, but the page looks wrong and WP is trying to pull posts with the following query:

    SELECT ID FROM wp_posts WHERE post_name LIKE ‘page%’ AND post_type = ‘product’ AND post_status = ‘publish’

    With the output of “Sorry, no posts matched your criteria.” through the index.php template instead of the template that is being run via the “products” page.

    Any suggestions on how to get WP to recognize the “products” page and the “page” query var with this URL?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Post Type pagination issues’ is closed to new replies.