Design & Devlopment Blog

Blog » WordPress » Put blog back in wordpress permalink url

If you using wordpress as a CMS with a SEO permalink structure, you might have found a problem with your permalinks when viewing your blog. Heres an example. On your wordpress website you click on ‘blog’ and you are sent to this url: www.website.com/blog

Thats all well and good but then when you click on a post, you get this url: www.website.com/category-name/post-title

Where did our blog/ in the url go? Well, I have a way of putting the ‘blog’ back in your wordpress url.

If you are using a SEO permalink structure like /%category%/%postname%/ your permalink can only handle 2 bits of text up in the website url so the ‘blog’ got cut out. Don’t panic, we can get it back really easily!

  1. make a category called Blog

  2. set all categories to use Blog as the parent category


Thats it! Now you will see this url: www.website.com/blog/category-name/post-title

*Changing your category structure may result in some plug ins to behave differently (your breadcrumb trail may display blog twice, but this can be catered for with some code in your theme)

« »