Url structure for custom post types

Hi there,

I’ve changed the URL structure through standard Wordpress settings which works perfectly for blog posts:
example: https://immagine.davidbarrydesigns.com.au/immigration-blog/post/perception-is-reality/

However, this has also changed the structure for some custom post types I have:
Current example: https://immagine.davidbarrydesigns.com.au/immigration-blog/post/team_member/iain-macleod/
Desired example: https://immagine.davidbarrydesigns.com.au/team_member/iain-macleod/

Same issue with my Case Studies CPT:
Current: https://immagine.davidbarrydesigns.com.au/immigration-blog/post/case_studies/identifying-occupational-merits/
Desired: https://immagine.davidbarrydesigns.com.au/case_studies/identifying-occupational-merits/

Are you able to provide guidance on how I can change the permalink structure depending on the Post Type? Or to just target Posts, and not my other CPTs

Thanks,
David

Using the Custom Post Type UI plugin? The ‘rewrite_withfront’ setting should be false.

If you are doing it via functions.php… 'rewrite' => array( 'with_front' => false ),

1 Like

Oh my god, so simple! Thank you so much!

Cheers,
David

Hey @xRae,

Thanks for chiming in, we really appreciate your help.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.