1

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

0

hierarchical must be set to true and make sure you have the Article post type set as the parent of the science post type

....and be sure to flush the permalinks after making changes

  • tqs but how to set articles as parent? i added articles post type as parent from parent field also set the the parent child relationship as true in article post type including hierarchy. I doubt if i have set it right. – Manjunath Oct 18 '18 at 2:41
  • Are you using the CPT UI plugin?? – colbyalbo Oct 18 '18 at 21:50

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.