Default Permalink

Description

When a post title contains multi-byte characters (such as Japanese), WordPress generates a URL-encoded slug like %e3%81%82..., which results in a long and unreadable permalink.

This plugin replaces such auto-generated slugs with {post_type}-{post_ID} (e.g. post-123). A multi-byte slug is kept as-is when the user has explicitly specified it.

Usage

  1. Go to « Settings » -> « Default Permalink » in the WordPress admin.
  2. Check « Enable » and save changes.

Installation

  1. Upload the default-permalink folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Enable the plugin’s behavior from « Settings » -> « Default Permalink ».

Avis

Il n’y a aucun avis pour cette extension.

Contributeurs/contributrices & développeurs/développeuses

« Default Permalink » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

Traduisez « Default Permalink » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.

Journal des modifications

1.5.1

  • Updated the plugin and author URLs to the new product site (https://www.redwoodcity.jp/app/default-permalink/).
  • Code quality: WordPress Coding Standards compliance and Plugin Check annotations. No functional changes.

1.5

  • Added an admin notice shown after a slug has been automatically replaced.
  • Added a bulk conversion tool for existing multi-byte slugs. Old URLs are redirected (301) by the WordPress core old-slug mechanism.
  • Hardened: slug replacement is skipped when no post ID is available (prevents colliding « post-0 » slugs on direct wp_insert_post calls).

1.4

  • Added slug format options: post type and ID (post-123), post date and ID (20260613-123), or a random string (a1b2c3d4).
  • Added target post type selection.

1.3

  • Added uninstall cleanup: plugin options are deleted when the plugin is uninstalled.
  • Added a Settings link on the Plugins screen.
  • Added the default_permalink_slug filter for customizing the generated slug.

1.2

  • Confirmed compatibility with the latest WordPress.
  • Replaced the deprecated get_page() with get_post() (fixes a fatal error on PHP 8).
  • Hardened the settings page: output escaping, sanitize callback for the option, checked() helper.
  • Made the settings page strings translatable and load the plugin text domain.

1.1

  • Added Japanese translation.

1.0

  • Initial release.