Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.