Usage

How to install and configure Default Permalink, and how to bulk convert existing slugs.

Installation

  1. Search for “Default Permalink” under “Plugins” → “Add New Plugin” in the WordPress admin, or upload the default-permalink folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the “Plugins” menu.

Enable and configure

Go to “Settings” → “Default Permalink”, check “Enable” and save changes. Activating the plugin alone does not start replacing slugs.

Settings

SettingDescription
EnableTurns automatic slug replacement on
Slug formatChoose one of three formats for the replaced slug
Target post typesChoose which post types are targeted

Slug formats

FormatExample
Post type and IDpost-123
Post date and ID20260613-123
Random string (8 alphanumeric characters)a1b2c3d4

Once “Target post types” has been saved, the selection becomes explicit: custom post types registered afterwards are not targeted automatically. Check them on the settings page when needed.

How it works

When a post is saved, the slug is replaced with the selected format only if it contains URL-encoded multi-byte characters (like %e3%81%82...) and no slug has been explicitly specified. A slug you enter yourself in the permalink field is respected as-is, even if it is multi-byte.

After a slug has been replaced, an admin notice is shown once the next time you open that post’s edit screen.

Bulk convert existing slugs

Multi-byte slugs of posts created before installing the plugin can be converted in bulk from the bottom of the settings page.

  1. Check the number of posts with a multi-byte slug at the bottom of the settings page.
  2. Click “Convert now” (50 posts are converted per run).
  3. Repeat until the remaining count reaches zero.

Old URLs are redirected (301) to the new permalink by the WordPress core old-slug mechanism, so no links are broken.

Copied title and URL