最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wp query - Wordpress doesn't respect Page slug in custom post type url pagination. Keeps getting removed

programmeradmin1浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论