0

I created my CPT along with your category ... It's a bad practice to do this?

in register_post_type: rewrite => array ( 'slug' => 'portfolio/work' )

in register_taxonomy: rewrite => array( 'slug' => 'portfolio/categoty' );

The reason is that my URL looks like this:

mysite.com/portfolio/work-title
mysite.com/portfolio/category/weddings
  • 1
    If that's the URL you want then it's not a bad practice and is fine. – Howdy_McGee Aug 1 at 1:37
  • Nope. It's absolutely fine. I've done this myself without issue. – Jacob Peattie Aug 1 at 1:46

Your Answer

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

Browse other questions tagged or ask your own question.