Divi change project category slug
How to change taxonomy urls in wordpress?
Following along with this question and this one
But can not get the desired outcome.
The default is:
example.com/project_category/%category%/
What I want is:
example.com/stainless-steel-products/%category%/
I have changed the slug of the project archive so that example.com/stainless-steel-products/
is the project archive.
Below is the code used to achieve that.
// Change peralinks projects
function custom_project_slug () {
return array(
'feeds' = true,
'slug' = 'stainless-steel-products',
'with_front' = false,
);
}
add_filter( 'et_project_posttype_rewrite_args', 'custom_project_slug' );
?
How do I change the slug of the project categories so that it is a child of the project archive? Thanks for any help in advance!
Topic child-theme url-rewriting php permalinks Wordpress
Category Web