admin管理员组

文章数量:1026103

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

Whenever I attempt to go to a page url eg. , 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

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

Whenever I attempt to go to a page url eg. , 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

本文标签: wp queryWordpress doesn39t respect Page slug in custom post type url pagination Keeps getting removed