I have a website, say mysite.com
, and there is a blog mysite.com/blog
. When I post a new post under the blog
category its appears like mysite.com/newpost
. I want the posts under the blog
category to be displayed under the blog
tag like mysite.com/blog/newpost
.
How can I achieve this?
Set your permalinks to
/%category%/%postname%/
. This will set the category name in front of the post URL.If you want to use the fixed string
blog
, set the permalinks to/blog/%postname%/
.