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

Read more here:: How to add rewrite rule to custom post type with parent in url with cpt ui?

Leave a Reply

Your email address will not be published. Required fields are marked *