跳到内容

Default Permalink

v1.14.0

Redwoodcity · 2014年6月25日 上架

Prevents multi-byte (URL-encoded) slugs in the default permalink. Multi-byte URL can still be used when the user explicitly specifies it.

正在使用
10+
评分
5.0 / 5
累计下载
3,212
最近更新
2026年11月23日
1 条评价需要 WordPress 4.7+已测试到 7.1.5PHP 7.4+

贡献者

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.

Optionally, new categories, tags and other terms with a multi-byte name can get a slug such as category-12.

Usage

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

Slug formats, target post types, the bulk conversion and more are explained in the usage guide: https://www.redwoodcity.jp/app/default-permalink/en/usage-en/

WP-CLI

  • wp default-permalink status shows the settings and the number of posts with a multi-byte slug.
  • wp default-permalink convert --dry-run lists the posts to convert and their new slugs; wp default-permalink convert converts them all (no 50-post limit).
  • --post_type, --limit and --after convert a large site in steps. See the documentation: https://www.redwoodcity.jp/app/default-permalink/en/docs-en/
  • wp default-permalink old-path list, add <ID> <path> and delete <ID> <path> show, add and remove the old page URLs that are redirected (301) to a page.

Convert a single post

In the post, page and media lists, a post that still has a multi-byte slug shows a “Convert slug” link under its title (when the plugin is enabled and you can edit the post). It converts just that post to the selected format; the old URL is redirected to the new one.

Site Health

Tools -> Site Health recommends enabling the plugin when it is installed but not enabled, and shows how many posts still have multi-byte slugs, with a link to the settings screen.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums