While Using Static Pages, How Can I Get /blog into the URL of Each Post?

In admin under Settings > Permalinks, select Custom Structure and enter /blog/%postname%/.

This will prepend /blog/ to categories and tags by default, and any custom post types and taxonomies where you have not registered them with the with_front argument set to false. you can remove it from the built-in category and tag taxonomies by setting category base and tag base (also under Settings > Permalinks) to category and tag, respectively (or whatever you want your bases to be). The end result will be that only posts will contain the blog prefix.

Leave a Comment