• Resolved J03Y

    (@j03y)


    I created a Custom Content Type with 10 posts per page. Enabled the pager. The first page is working as expected, displaying 10 products with the pager below. After clicking “next page” (url /page/2) I get an error 404 – page not found. When I set the permalinks to standard (domain.com/?p=123) the pager does work as expected showing the next 10 products.

    The problem only seems to exist with a Custom Content Type when using clean URLs (permalinks /%postname%/). Any suggestions?

    https://www.ads-software.com/plugins/query-wrangler/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jonathan Daggerhart

    (@daggerhart)

    Hi J03Y,

    I’m a little confused. Could you rephrase the problem for me one more time? Did you make a query of that shows a custom post type, and place the short code on a normal page? Or did you place a query shortcode within the content of a custom post type?

    If you’re using a plugin to create the custom post type, could you please tell me the name of that plugin? Also, if you defined that custom post type yourself in php, could you please paste (or email) me that code? My email is my first name at my last name.

    Thanks,
    Jonathan

    Thread Starter J03Y

    (@j03y)

    Hi Jonathan,

    Thanks for the quick reply. I placed the QW shortcode on a normal page. In the QW settings I used a custom content type in the filter. I created the custom content type using CCTM. But that doesn’t seem to be the problem.

    I tried to reproduce the problem, but for some reason it only appears to be happening at a certain permalink. If I change the permalink then it works fine. So I tested it in a new WP install with the same permalink and that worked. So I’m kind of confused actually.

    I don’t think it’s an QW issue, so I marked it as resolved.

    I agree about this not being a Query Wrangler issue, though I just wanted to throw this out there just in case anyone else ran into the same thing.

    I also had a number of custom post types and had been using custom link structures (I happen to be using Types).
    If the post type that I was filtering used the same url that the Query Wrangler page was using, the additional pages from the pager would give me a 404 error as well.

    For example, I had the structure ‘site.com/products/product-name’ for a Product content type.

    If I also had a basic page with a query using the url ‘ site.com/products’
    ‘site.com/products/page/2’ etc. would give me a 404 error.

    Changing either the Query page url or the structure on the post type fixed it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Post per page / pager not working on Custom Content Types using clean URLs’ is closed to new replies.