Custom Post Type Rewrite Permalink and Exclude base
-
I’m having trouble getting rid of the custom post type base in the permalink.
I have this written in the functions.php file write now.
'rewrite' => array( 'slug' => 'region', 'with_front' => false ),
I’ve tried just leaving the slug blank but that doesn’t work either.
So I’m getting this:
https://www.domain.com/region/california
when I really want this:
https://www.domain.com/california
Having a heck of a time finding an answer anywhere else.
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Custom Post Type Rewrite Permalink and Exclude base’ is closed to new replies.