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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

In 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