1

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?

1 Answer 1

0

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

4
  • 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
    Commented Nov 23, 2012 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.
    – fuxia
    Commented Nov 23, 2012 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
    Commented Nov 23, 2012 at 7:42
  • No, this will change only post URLs, not pages.
    – fuxia
    Commented Nov 23, 2012 at 7:53

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.