Title: Simple Post Type Permalinks
Author: Toro_Unit (Hiroshi Urabe)
Published: <strong>2015 年 4 月 2 日</strong>
Last modified: 2019 年 6 月 4 日

---

搜索插件

![](https://ps.w.org/simple-post-type-permalinks/assets/banner-772x250.png?rev=1126124)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/simple-post-type-permalinks/assets/icon-256x256.png?rev=1126124)

# Simple Post Type Permalinks

 作者：[Toro_Unit (Hiroshi Urabe)](https://profiles.wordpress.org/toro_unit/)

[下载](https://downloads.wordpress.org/plugin/simple-post-type-permalinks.2.0.5.zip)

 * [详情](https://cn.wordpress.org/plugins/simple-post-type-permalinks/#description)
 * [评价](https://cn.wordpress.org/plugins/simple-post-type-permalinks/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/simple-post-type-permalinks/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/simple-post-type-permalinks/#developers)

 [支持](https://wordpress.org/support/plugin/simple-post-type-permalinks/)

## 描述

Edit the permalink structure of custom post type too easy.

Simple Post Type Permalinks is Simple and Smart than [Custom Post Type Permalinks](https://wordpress.org/plugins/custom-post-type-permalinks/).

Available tags are `%post_id%`, `%postname%`, `%year%`, `%monthnum%`, `%day%`, `%
hour%`, `%minute%`, `%second%`, `%author%`.

Requires PHP version 5.3 or higher.

[This Plugin published on GitHub.](https://github.com/torounit/simple-post-type-permalinks)

Please Fork and Pull Request!

### Setting on Code

如：

    ```
    register_post_type( 'foo',
        array(
            "public" => true,
            'has_archive' => true,
            "rewrite" => [
                "with_front" => true
            ],
            "sptp_permalink_structure" => "foo/%post_id%"
        )
    );
    ```

## 屏幕截图

 * [[
 * screenshot-1.png

## 安装

#### Manual Installation

 1. Upload the entire `/simple-post-type-permalinks` directory to the `/wp-content/
    plugins/` directory.
 2. Activate Simple Post Type Permalinks through the ‘Plugins’ menu in WordPress.

Access the permalinks setting by going to _Settings -> Permalinks_.

## 常见问题

  Which tag that can be used?

Only `%post_id%` and `%postname%`.

## 评价

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

### 󠀁[Very Good](https://wordpress.org/support/topic/very-good-5894/)󠁿

 [bahman maleki](https://profiles.wordpress.org/bahmanmaleki/) 2021 年 8 月 13 日

Very Good

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

### 󠀁[Very Good.](https://wordpress.org/support/topic/very-good-3828/)󠁿

 [freehzw](https://profiles.wordpress.org/notebook-driver/) 2019 年 4 月 11 日

Good and simple.

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

### 󠀁[Does not save the settings](https://wordpress.org/support/topic/does-not-save-the-settings/)󠁿

 [Barcelo](https://profiles.wordpress.org/barcelo/) 2018 年 7 月 18 日

Hi there, actually this was the solution I was looking for, but in my case it’s 
not working as the assignment in the plugins setting is not saved. Useless for me
🙁 Regards Barcelo

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

### 󠀁[コードで設定できるのがすごく良いです！](https://wordpress.org/support/topic/%e3%82%b3%e3%83%bc%e3%83%89%e3%81%a7%e8%a8%ad%e5%ae%9a%e3%81%a7%e3%81%8d%e3%82%8b%e3%81%ae%e3%81%8c%e3%81%99%e3%81%94%e3%81%8f%e8%89%af%e3%81%84%e3%81%a7%e3%81%99%ef%bc%81/)󠁿

 [Takashi Kitajima](https://profiles.wordpress.org/inc2734/) 2018 年 6 月 26 日

register_post_type() するときにパーマリンク構造も指定できます。管理画面で設定すると
管理が煩雑になるのでこれはすごく良いと思います。

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

### 󠀁[Does not work at all](https://wordpress.org/support/topic/does-not-work-at-all-41/)󠁿

 [galingong](https://profiles.wordpress.org/galingong/) 2017 年 9 月 13 日

Simply garbage. It screwed up all of my navigation links (changed them to frontpage
links), and of 4 custom post types it worked for 1. For the other 3 it generated
404 errors. Wasted 20 minutes.

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

### 󠀁[お世話になってます](https://wordpress.org/support/topic/%e3%81%8a%e4%b8%96%e8%a9%b1%e3%81%ab%e3%81%aa%e3%81%a3%e3%81%a6%e3%81%be%e3%81%99/)󠁿

 [Sayaka Kosugi](https://profiles.wordpress.org/mekemoke/) 2017 年 3 月 15 日

最近は Custom Post Type Permalinks よりもこちらを使わせていただいてます(/･ω･)/

 [ 阅读所有9条评价 ](https://wordpress.org/support/plugin/simple-post-type-permalinks/reviews/)

## 贡献者及开发者

「Simple Post Type Permalinks」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Toro_Unit (Hiroshi Urabe) ](https://profiles.wordpress.org/toro_unit/)
 *   [ Takashi Kitajima ](https://profiles.wordpress.org/inc2734/)

「Simple Post Type Permalinks」插件已被翻译至 3 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/simple-post-type-permalinks/contributors)
为本插件所做的贡献。

[帮助将「Simple Post Type Permalinks」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-post-type-permalinks)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/simple-post-type-permalinks/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/simple-post-type-permalinks/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/simple-post-type-permalinks/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/simple-post-type-permalinks/)。

## 更新日志

#### 2.0.1

 * Tested 4.9

#### 2.0.0

 * Change of class structure.
 * Change namespace.
 * Add abstract Module class.
 * Use autoloader.
 * Remove constructor injection and add setter injection for modules.
 * Support `%year%`, `%monthnum%`, `%day%`, `%hour%`, `%minute%`, `%second%`, `%
   author%`.

#### 1.3.1

 * fix pagination link.

#### 1.2.0

 * fix textdomain.

#### 1.1.0

 * Test with WooCommerce and WPML.
 * Admin Bug Fix.
 * Support `get_post_type_archive`.

#### 1.0.3

 * Admin Bug Fix.

#### 1.0.2

 * Coding Standard Fix.

#### 1.0.0

 * Drop PHP 5.2.

#### 0.1.0

 * First release

## 额外信息

 *  版本 **2.0.5**
 *  最后更新：**7 年前**
 *  活跃安装数量 **9,000+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  PHP 版本 ** 5.3 或更高版本 **
 *  语言
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/simple-post-type-permalinks/)、
   [Dutch](https://nl.wordpress.org/plugins/simple-post-type-permalinks/) 、 [English (US)](https://wordpress.org/plugins/simple-post-type-permalinks/)
   和 [Japanese](https://ja.wordpress.org/plugins/simple-post-type-permalinks/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/simple-post-type-permalinks)
 * 标签
 * [cms](https://cn.wordpress.org/plugins/tags/cms/)[custom post type](https://cn.wordpress.org/plugins/tags/custom-post-type/)
   [permalink](https://cn.wordpress.org/plugins/tags/permalink/)[permalinks](https://cn.wordpress.org/plugins/tags/permalinks/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-post-type-permalinks/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  10 条 5 星评价     ](https://wordpress.org/support/plugin/simple-post-type-permalinks/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/simple-post-type-permalinks/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/simple-post-type-permalinks/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/simple-post-type-permalinks/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/simple-post-type-permalinks/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/simple-post-type-permalinks/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/simple-post-type-permalinks/reviews/)

## 贡献者

 *   [ Toro_Unit (Hiroshi Urabe) ](https://profiles.wordpress.org/toro_unit/)
 *   [ Takashi Kitajima ](https://profiles.wordpress.org/inc2734/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/simple-post-type-permalinks/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV)