0

I have used post_tag for Custom post type. I want to create a new URL structure of post_tag for each custom post types.

Example: domain.com/tag/tag_name/

domain.com/post_type_1/tag/tag_name/

domain.com/post_type_2/tag/tag_name/

Thanks

0

Use

'taxonomies' => array('post_tag'),

in your custom post type and tag would appear as you wished for

  • Hi, You don't understand my question. I want create new URL rewrite for post_tag for each custom post type: domain.com/post_type_1/tag/tag_name/ domain.com/post_type_2/tag/tag_name/ – Tommy Aug 4 '17 at 7:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.