Skip to content

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 31 Aug 21:06

New

  • Blog posts in a folder of their own - a new option gives ordinary WordPress posts an address such as /blog/my-post/, while every HivePress address stays exactly where it is. You choose the folder name, so news or articles work just as well.

  • Old post addresses are redirected. Whatever your posts were reachable at before you switched this on is permanently redirected to the new address, so shared links and indexed pages do not break.

Why this is an option rather than something you set yourself

Setting the permalink structure at the top of the Permalinks page to /blog/%postname%/ looks like the obvious way to do this, but WordPress then treats /blog/ as the whole site's prefix and puts it in front of your listings, vendors, categories and tags as well. The usual remedy is to strip that prefix back off every HivePress object, which is more to maintain, cannot know about whatever registers the next post type, and can leave the prefix on ordinary pages. HivePress's own advice, on the community topic where both approaches were compared side by side, was to add the folder to posts only. That is what this option does.

Not included, and why

Removing the base from listing addresses entirely - /bikes/london/my-listing/ rather than /listing/bikes/london/my-listing/ - was built alongside this and then withdrawn. WordPress merges custom post type rules ahead of its page rules, so a base-less rule is tested before your pages are, and pinning the first segment to real category slugs was not enough to make that safe in testing. It is better to leave it out than to ship something that can quietly stop a page from opening.