Title: Custom Post Type Multiroutes
Author: arg82
Published: <strong>2020 年 1 月 6 日</strong>
Last modified: 2020 年 1 月 7 日

---

搜索插件

![](https://ps.w.org/custom-post-type-multiroutes/assets/banner-772x250.jpg?rev=
2223038)

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

![](https://ps.w.org/custom-post-type-multiroutes/assets/icon-256x256.jpg?rev=2223038)

# Custom Post Type Multiroutes

 作者：[arg82](https://profiles.wordpress.org/arg82/)

[下载](https://downloads.wordpress.org/plugin/custom-post-type-multiroutes.zip)

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

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

## 描述

Custom Post Type Multiroutes allows you to manage, add, edit and update multiple
routes for your Custom Post Types.
 Minimum configuration needed. Install it, type
your routes for your posts and refresh permalinks.

### Use case

Say you have a custom post type called ‘Galleries’ and you want it to appear on 
two archive pages:

    ```
    /news/gallery/
    /media/album/
    ```

And its single pages to be: `/news/gallery/<gallery-name>` and `/media/album/<gallery-
name>`

All you have to do is:

 1. Go to Settings > CPT Multiroutes (you will se a list of your custom post types)
 2. Click on “Add Route” for your ‘Galleries’ post.
 3. Fill the new imput for that new route, in this case ‘news/gallery’
 4. Repeat 2&3 per route you want to add.
 5. Select the checkbox ‘Rewrite this post type archive to these routes’ if you want
    that route to be your archive page for the custom post type.
 6. Click Save Routes.

Additionally a custom Metabox will appear on each of those custom post types on 
its admin edit page, there you will be able to choose individually on which route
you wish the post to be visible. By default it will be visible on all defined routes.

If you are using WPML for multilanguage, when you add a route, an input for each
acive language will appear so you can translate those new routes.

## 屏幕截图

 * [[
 * Settings.
 * [[
 * Admin custom post edit list.
 * [[
 * Metabox on admin edit post page.

## 安装

 1. Upload the entire `Custom-Post-Type-Multiroutes` folder to the `/wp-content/plugins/`
    directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## 常见问题

  Can i use this plugin for existing custom post types?

Yes. It will work with all CPT with these properties: ‘show_ui’ => true, ‘show_in_menu’
=> true.

  Can i translate the routes?

Yes. But currently it’s only compatible with WPML.

  Is there a route limit?

No, you can add as much routes as you need.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ arg82 ](https://profiles.wordpress.org/arg82/)

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 0.1.1

 * Added admin edit post list column and filter by post cptmr_route postmeta.
 * Bugfix.

#### 0.1.0

 * Initial release.

## 额外信息

 *  版本 **0.1.2**
 *  最后更新：**6 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.9 或更高版本 **
 *  已测试的最高版本为 **5.3.21**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/custom-post-type-multiroutes/) 、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/custom-post-type-multiroutes/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/custom-post-type-multiroutes/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/custom-post-type-multiroutes)
 * 标签
 * [custom post types](https://cn.wordpress.org/plugins/tags/custom-post-types/)
   [multilingual](https://cn.wordpress.org/plugins/tags/multilingual/)[routes](https://cn.wordpress.org/plugins/tags/routes/)
 *  [高级视图](https://cn.wordpress.org/plugins/custom-post-type-multiroutes/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ arg82 ](https://profiles.wordpress.org/arg82/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=UMNUKQHKN8AQC&item_name=Help+me+continue+developing+CPTMultiroutes+plugin%21&currency_code=EUR&source=url)