admin管理员组文章数量:1134247
I have a custom post type 'services', but the archive is false, I am using a page as services.
But now I need this slug
mydomain/services/taxonomy/post2
How I can link my taxonomies with Services page as parent.
It is possible?
Thank you
I have a custom post type 'services', but the archive is false, I am using a page as services.
But now I need this slug
mydomain.com/services/taxonomy/post2
How I can link my taxonomies with Services page as parent.
It is possible?
Thank you
Share Improve this question asked Oct 26, 2017 at 18:40 Taller de WordPressTaller de WordPress 216 bronze badges1 Answer
Reset to default 0In your register_taxonomy $args list, you need to add this:
"rewrite" => array( "slug" => "services/taxonomy", "with_front" => true ),
This will prepend services to your taxonomy slug.
See here for more arguments: https://codex.wordpress.org/Function_Reference/register_taxonomy#Arguments
本文标签: custom post typesMy CPT has archive falsenow I need use parent Page for slug
版权声明:本文标题:custom post types - My CPT has archive false, now I need use parent Page for slug 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736855657a1955698.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论