I have a custom post type, Company, with respective company child pages.

Whenever I attempt to go to a page url eg. http://example.com/company/example_company/page/2, the /page/2/ gets striped from the url. ?page=X also gets removed. This occurs regardless of the page query I'm using.

Other query vars are respected.

Debugging reveals the current page number is 0, other parts of the queries work fine.

/page/X works as expected on other archive pages

  • 2
    Pagination pattern for singular posts is /slug/post-name/2/, without /page/ – Milo Apr 3 at 3:09
  • Great. It doesn't get stripped out. But now I need to find out how to best grab that final slug. – Chris Apr 3 at 18:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.