We have categories on our posts such as:




I'd like the blog to have a url of -> https://www.example.com/blog/

Can anyone show me how this is done using functions.php?

I've tried adjusting in the Settings and Yoast SEO but it removes the 'category' in all the category types.

thank you in advance

1 Answer 1


If you want this: www.exp.com/blog Just create a page and put the slug as blog! then go to the settings > Reading, there you should put a page for your blog posts simply choose the page that you created on the previous step named blog. after that, all your posts will be visible on the www.exp.com/blog.

  • thank you! that makes sense :) Apr 20, 2020 at 6:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.