permalinks - Assign same parrent Page to pages AND custom post types

I have a page, where I list our current free job positions, let's call it Career. In it's content all custom p

I have a page, where I list our current free job positions, let's call it Career. In it's content all custom post types of type job_position are being displayed.

For some specific reasons I need to have couple of subpages, which have the Career page set as their Parrent page (so it displays correctly in breadcrumbs, etc.)

The problem is that once you click some job position, a single CTP page displays like this:

Slug: mysite/job_position/job-name instead of mysite/career/job-name

Breadcrumbs: Home > Job name instead of Job > Career > Job name

I can workaround this by setting the custom slug for my CPT's (either with CPT UI plugin, which I use, or programatically). After that, both slug and breadcrumbs work great for these CPT, but all subpages that have the Career page set as their parrent throw a 404 error (because I messed up the permalink structure by those changes).

Is there a way to do this?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745298828a4621308.html

相关推荐

  • permalinks - Assign same parrent Page to pages AND custom post types

    I have a page, where I list our current free job positions, let's call it Career. In it's content all custom p

    8小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信