Title: Custom Post Types Relationships (CPTR)
Author: Anastis Sourgoutsidis
Published: <strong>2010 年 11 月 16 日</strong>
Last modified: 2022 年 6 月 13 日

---

搜索插件

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

![](https://ps.w.org/custom-post-types-relationships-cptr/assets/icon-256x256.png?
rev=1756206)

# Custom Post Types Relationships (CPTR)

 作者：[Anastis Sourgoutsidis](https://profiles.wordpress.org/anastis/)

[下载](https://downloads.wordpress.org/plugin/custom-post-types-relationships-cptr.2.5.1.zip)

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

 [支持](https://wordpress.org/support/plugin/custom-post-types-relationships-cptr/)

## 描述

Most of the “related posts” plugins out there while they provide some kind of control
on how to create related posts, they all rely on an algorithm
 and the results are
automatic. With CPTR you get total control as you can manually select the posts 
that you want to relate.

## 屏幕截图

 * [[
 * The Custom related posts (CPTR) screen. Search, select, relate, done.
 * [[
 * The default settings panel.

## 安装

 1. Upload the folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. In the Posts page you will see the main screen of the plugin.

## 常见问题

### How do I display the related posts then?

Check http://www.cssigniter.com/ignite/custom-post-relationships/ for info on how
to display your related posts.

## 评价

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

### 󠀁[Awesome plugin using it from last 5-6 years!](https://wordpress.org/support/topic/awesome-plugin-using-it-from-last-5-6-years/)󠁿

 [Hari](https://profiles.wordpress.org/haribonda/) 2021 年 4 月 11 日

Awesome plugin using it from last 5-6 years!

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/custom-post-types-relationships-cptr/reviews/)

## 贡献者及开发者

「Custom Post Types Relationships (CPTR)」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Anastis Sourgoutsidis ](https://profiles.wordpress.org/anastis/)
 *   [ Gerasimos Tsiamalos ](https://profiles.wordpress.org/tsiger/)

[帮助将「Custom Post Types Relationships (CPTR)」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/custom-post-types-relationships-cptr)

### 对开发感兴趣吗?

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

## 更新日志

#### 2.5.1

 * Fixed issue where the thumbnail wouldn’t get displayed.
 * Fixed issue where a notice would be thrown when WP_DEBUG was true.
 * Fixed issue where saved relations wouldn’t get displayed while editing (saving
   wasn’t affected).

#### 2.5

 * Made all text translatable.
 * Wrapped all HTML properties in double quotes instead of single.
 * Escaped everything!
 * Moved image, js and css files into folders.
 * “Filter” field now has two uses. As a search term when loading results, and once
   loaded, filtering current results by title.
 * Added ability to use the plugin by user-selectable roles.
 * Added ability to use the plugin in user-selectable post-types.
 * Metabox title is now customizable through the options.
 * Number of results dropdown (in post edit screens) is now filterable with ‘cptr_results_num_per_category’

#### 2.4.1

 * Added a “Settings” link into the plugins’ listing page.
 * The plugin’s Upgrade Notice, if available, is now shown into the plugins listing
   page.

#### 2.4

 * Fixed a bug where the normal post object was not restored after the execution
   of cptr_category_selector(), when selecting related posts. (Thanks Pascal Rosin).

#### 2.3

 * Fixed a bug where relationships were inappropriately outputted when using the
   shortcode.

#### 2.2

 * All functions/pages/settings etc that included the acronym CPT have been renamed
   to CPTR. Functions have been deprecated and will be available until v3.0.
 * Implemented automatic upgrade of settings etc for earlier version users.

#### 2.1

 * Version number changed to match the plugin repo.
 * Fixed a bug where the last related post was the current for $post after the plugin
   run.
 * Thumbnail now links to the post too.
 * The cpr_populate() function now always returns an array, even if empty.

#### 1.0

 * Initial Release

## 额外信息

 *  版本 **2.5.1**
 *  最后更新：**4 年前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 4.8 或更高版本 **
 *  已测试的最高版本为 **6.0.12**
 *  语言
 * [English (US)](https://wordpress.org/plugins/custom-post-types-relationships-cptr/)
 * 标签
 * [custom related posts](https://cn.wordpress.org/plugins/tags/custom-related-posts/)
   [custom relations](https://cn.wordpress.org/plugins/tags/custom-relations/)[post relationships](https://cn.wordpress.org/plugins/tags/post-relationships/)
   [related](https://cn.wordpress.org/plugins/tags/related/)[related posts](https://cn.wordpress.org/plugins/tags/related-posts/)
 *  [高级视图](https://cn.wordpress.org/plugins/custom-post-types-relationships-cptr/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/custom-post-types-relationships-cptr/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/custom-post-types-relationships-cptr/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/custom-post-types-relationships-cptr/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/custom-post-types-relationships-cptr/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/custom-post-types-relationships-cptr/reviews/?filter=1)

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

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

## 贡献者

 *   [ Anastis Sourgoutsidis ](https://profiles.wordpress.org/anastis/)
 *   [ Gerasimos Tsiamalos ](https://profiles.wordpress.org/tsiger/)

## 支持

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

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