Skip to main content
1 of 2
MJN
  • 113
  • 2

How to add rewrite rule to custom post type with parent in url with cpt ui?

I'm trying to create custom post types but i need the posts of custom post type to have the url along with parent category. Example for now i have custom post types science, tech, business. The url of each post is mysite.com/science/postname. what i need is mysite.com/articles/science/post name. I tried giving articles/science in rewrite rule of cpt ui but it gives 404 error. Can you guys point me to right direction? Thank you

MJN
  • 113
  • 2