Title: Wenprise Pinyin Slug
Author: Amos Lee（一刀）
Published: <strong>1. Januar 2018</strong>
Last modified: 3. Februar 2025

---

Search plugins

![](https://ps.w.org/wenprise-pinyin-slug/assets/banner-772x250.png?rev=3140468)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/wenprise-pinyin-slug/assets/icon.svg?rev=3140468)

# Wenprise Pinyin Slug

 By [Amos Lee（一刀）](https://profiles.wordpress.org/iwillhappy1314/)

[Download](https://downloads.wordpress.org/plugin/wenprise-pinyin-slug.3.1.1.zip)

 * [Details](https://de-ch.wordpress.org/plugins/wenprise-pinyin-slug/#description)
 * [Reviews](https://de-ch.wordpress.org/plugins/wenprise-pinyin-slug/#reviews)
 *  [Installation](https://de-ch.wordpress.org/plugins/wenprise-pinyin-slug/#installation)
 * [Development](https://de-ch.wordpress.org/plugins/wenprise-pinyin-slug/#developers)

 [Support](https://wordpress.org/support/plugin/wenprise-pinyin-slug/)

## Description

自动转换 WordPress 中的中文文章别名、分类项目别名、图片文件名称为汉语拼音或英文翻译。

### 插件的主要功能

 * 转换文章别名为拼音或英文翻译，支持快速编辑时转换
 * 转换分类目录、标签或自定义分类法别名为拼音或英文翻译，支持快速编辑时转换
 * 当别名为英文，或手动设置了中文别名时，保持原样
 * 可选的转换中文图片名为拼音或英文翻译
 * 支持自定义转换方式为全拼或第一个字母
 * 支持设置拼音之间的间隔字符
 * 支持截取转换后的拼音或英文翻译为设置的长度
 * 支持古腾堡编辑器
 * 如果出现中英文混合的情况、保留英文、只转换中文部分

### 为什么需要这个插件？

当 URL 中出现中文时，中文部分会被自动转码，不知道的人看起来就是一团乱码，缺乏可读
性。虽然有些浏览器可以在地址栏中显示中文，复制分享给别人的时候，URL 中文部分显示
的也是被转码后的代码。

不同的操作系统环境，FTP 传输工具使用的文件名编码不同，迁移服务器时，如果文件名编码
发生了变换，中文文件名很可能会变成乱码，导致文件不能访问。

### 什么情况下使用这个插件？

如果你的站点是给客户用的，建议使用这个插件，因为他们很可能不会意识到在 URL 和文件
名中使用中文的问题。此插件可以自动帮他们处理。

如果站点是你自己用的，并且你是一个细心的人，发布内容时，会手动编辑别名和文件名，
这个插件对你来说就是多余的。不需要安装。

## Screenshots

[⌊文章别名自动转换⌉⌊文章别名自动转换⌉[

文章别名自动转换

[⌊分类别名自动转换⌉⌊分类别名自动转换⌉[

分类别名自动转换

[⌊文件名自动转换⌉⌊文件名自动转换⌉[

文件名自动转换

## Installation

 1. 上传插件到`/wp-content/plugins/` 目录，或在 WordPress 安装插件界面搜索 «Wenprise
    Pinyin Slug»，点击安装。
 2. 在插件管理菜单激活插件

## FAQ

### 插件支持繁体中文吗？

经测试，插件是支持繁体中文的。

## Reviews

![](https://secure.gravatar.com/avatar/bdb1c94e0b4e6fe7d4fddef344f29e10d637ece8490e8b2bb04daa4658bb4339?
s=60&d=retro&r=g)

### 󠀁[非常好用的插件，我把中文别称都改为英文了](https://wordpress.org/support/topic/%e9%9d%9e%e5%b8%b8%e5%a5%bd%e7%94%a8%e7%9a%84%e6%8f%92%e4%bb%b6%ef%bc%8c%e6%88%91%e6%8a%8a%e4%b8%ad%e6%96%87%e5%88%ab%e7%a7%b0%e9%83%bd%e6%94%b9%e4%b8%ba%e8%8b%b1%e6%96%87%e4%ba%86/)󠁿

 [soway](https://profiles.wordpress.org/soway/) 5. August 2024

申请了百度的API，顺利自动实现全链接名为英文翻译的内容，看起来比较好。

![](https://secure.gravatar.com/avatar/1fbc4294248746127b7c694268511ad94c87998a4a80f0b7326d0b642863d6dc?
s=60&d=retro&r=g)

### 󠀁[激活后，以前的 permalinks 都失效了，希望改进](https://wordpress.org/support/topic/%e6%bf%80%e6%b4%bb%e5%90%8e%ef%bc%8c%e4%bb%a5%e5%89%8d%e7%9a%84-permalinks-%e9%83%bd%e5%a4%b1%e6%95%88%e4%ba%86%ef%bc%8c%e5%b8%8c%e6%9c%9b%e6%94%b9%e8%bf%9b/)󠁿

 [fofen](https://profiles.wordpress.org/fofen/) 25. Juni 2022 2 replies

用起来还是很好用的，非常感谢。

![](https://secure.gravatar.com/avatar/c7394e3e26ebc2dc9a41267fe0d4282f32b47a21e9f7332cd139c2a255ae3ff5?
s=60&d=retro&r=g)

### 󠀁[我本地安装了不没效果呢！](https://wordpress.org/support/topic/%e6%88%91%e6%9c%ac%e5%9c%b0%e5%ae%89%e8%a3%85%e4%ba%86%e4%b8%8d%e6%b2%a1%e6%95%88%e6%9e%9c%e5%91%a2%ef%bc%81/)󠁿

 [yekainew](https://profiles.wordpress.org/yekainew/) 5. April 2020 1 reply

我本地安装了不没效果呢！百度翻译和拼音都试了，没效果呢。是不是要放服务器上才能用
的？我本地phpstudy安装的用不到呢。没反应

![](https://secure.gravatar.com/avatar/e5738f6f9163d3070db1254aced2f1e1e5b18a999ba8506a9a1645407fff2e3c?
s=60&d=retro&r=g)

### 󠀁[很牛逼](https://wordpress.org/support/topic/%e5%be%88%e7%89%9b%e9%80%bc/)󠁿

 [geekyun7](https://profiles.wordpress.org/geekyun7/) 23. Juli 2019

很牛逼，给插件作者反馈了一个需求，第二天就更新了，五星好评！

![](https://secure.gravatar.com/avatar/a0fa49958b7c45c0b373b185feb5debe5bdd35be3b3536bc44477d3bd3a2d435?
s=60&d=retro&r=g)

### 󠀁[自评五星](https://wordpress.org/support/topic/%e8%87%aa%e8%af%84%e4%ba%94%e6%98%9f/)󠁿

 [Amos Lee（一刀）](https://profiles.wordpress.org/iwillhappy1314/) 6. März 2019

自评五星，自己用着非常好用，希望大家也用得开心。

 [ Read all 5 reviews ](https://wordpress.org/support/plugin/wenprise-pinyin-slug/reviews/)

## Contributors & Developers

“Wenprise Pinyin Slug” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Amos Lee（一刀） ](https://profiles.wordpress.org/iwillhappy1314/)

[Translate “Wenprise Pinyin Slug” into your language.](https://translate.wordpress.org/projects/wp-plugins/wenprise-pinyin-slug)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wenprise-pinyin-slug/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wenprise-pinyin-slug/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wenprise-pinyin-slug/)
by [RSS](https://plugins.trac.wordpress.org/log/wenprise-pinyin-slug/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

### 3.1.1

 * 解决分类名称为英文时，不调用 sanitize_title 的问题

### 3.1.0

 * Bugfix, 解决新版古滕堡编辑器保存文章时多次进行拼音转换的问题
 * PHP 版本要求提高到 7.4

### 3.0.0

 * PHP 版本要求提高到 7.1.0
 * 移除没有使用的依赖库

### 1.5.4

 * update test up

### 1.5.3

 * 增加对 wp_insert_post 函数的支持

### 1.5.2

 * 增加 wenprise_converted_slug Filter，允许第三方代码修改转换后的别名

### 1.5.1

 * 修复翻译模式下，分隔符无效的问题

### 1.5.0

 * 修改后台设置，合并翻译设置和拼音转换模式设置

### 1.4.13

 * Bugfix
 * 中英混合时，转换英文为小写

### 1.4.10

 * 使用严格模式进行设置测试

### 1.4.8

 * 修复没有后缀时，导致 sanitize_file_name 函数多一个 . 的问题

### 1.4.5

 * 更改访问设置的权限为管理员

### 1.4.4

 * 添加禁用文件名自动转换的选项

### 1.4.3

 * 设置拼音默认长度为 60 个字符

### 1.4.1

 * 修复古腾堡编辑器在无草稿直接发布时不能转换别名的 Bug

### 1.4.0

 * 添加百度翻译 API，如果选择不使用或者翻译失败，则使用拼音转换的方式生成别名，则
   使用拼音转换的方式生成别名

### 1.3.1

 * 插件列表添加设置链接

### 1.3.0

 * 支持古腾堡编辑器

### 1.2.2

 * 长度限制默认设置为空，为空时，不截取转换后的别名

### 1.2.1

 * Bugfix

### 1.2

 * 增加转换别名字符长度限制

### 1.1.3

 * 添加 PHP 版本检查

### 1.1.2

 * 解决更新分类时，别名不能转拼音的 Bug

### 1.1

 * 增加设置项，可以设置是否启用分隔符、分隔符样式以及转换方式，全拼或者第一个字母

#### 1.0

 * 第一个版本，支持文章别名、分类项目别名、和图片文件名的自动转换。

## Meta

 *  Version **3.1.1**
 *  Last updated **2 Jahren ago**
 *  Active installations **4'000+**
 *  WordPress version ** 3.4 or higher **
 *  Tested up to **6.6.10**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/wenprise-pinyin-slug/)
 * Tags
 * [pinyin attachment name](https://de-ch.wordpress.org/plugins/tags/pinyin-attachment-name/)
   [slug](https://de-ch.wordpress.org/plugins/tags/slug/)
 *  [Advanced View](https://de-ch.wordpress.org/plugins/wenprise-pinyin-slug/advanced/)

## Ratings

 5 von 5 Sternen.

 *  [  5 5-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/wenprise-pinyin-slug/reviews/?filter=5)
 *  [  0 4-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/wenprise-pinyin-slug/reviews/?filter=4)
 *  [  0 3-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/wenprise-pinyin-slug/reviews/?filter=3)
 *  [  0 2-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/wenprise-pinyin-slug/reviews/?filter=2)
 *  [  0 1-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/wenprise-pinyin-slug/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wenprise-pinyin-slug/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wenprise-pinyin-slug/reviews/)

## Contributors

 *   [ Amos Lee（一刀） ](https://profiles.wordpress.org/iwillhappy1314/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wenprise-pinyin-slug/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.wpzhiku.com/)