WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a website say mysite.com and there is a blog mysite.com/blog.When i post a new post under blog category its appears like mysite.com/newpost.I want the posts under blog category to be displayed under the blog tag like mysite.com/blog/newpost

How can i achieve this ?

share|improve this question
up vote 0 down vote accepted

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%/.

share|improve this answer
Thanks,but what can i do if i do not want a post to appear within a category and will this change effect the page permalinks? – asf Nov 23 '12 at 7:30
The second option is not related to categories, and yes, of course it will affect permalinks – that was your question after all. – toscho Nov 23 '12 at 7:34
I think you misunderstood what i was asking let me explain if there is a page called mysite.com/abc. abc is a page not a post.if i make the change as you have suggested will this effect this link. – asf Nov 23 '12 at 7:42
No, this will change only post URLs, not pages. – toscho Nov 23 '12 at 7:53
Thanks it worked – asf Nov 23 '12 at 8:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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