How to modify the slug for the default wp posts without affecting other posttypes?
Question
How can I modify the slug for the default wp posts without affecting other posttypes?
example: www.example.com/slug-of-post/
should become www.example.com/blog/slug-of-post/
I made a few custom post types where I rewrote the slug by using 'rewrite' => array('slug' => 'portfolio'),
in the function.php
file.
Result: www.example.com/post-type-slug/slug-of-post
I need the same result but for the default posts.
Thanks.
0
3 months
2020-11-21T16:10:31-05:00
2020-11-21T16:10:31-05:00 0 Answers
12 views
0
Leave an answer
You must login or register to add a new answer .