Title: Posts 2 Posts &#8211; WPML integration
Author: lencinhaus
Published: <strong>2011 年 9 月 7 日</strong>
Last modified: 2013 年 12 月 24 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/p2p-wpml.svg)

# Posts 2 Posts – WPML integration

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

[下载](https://downloads.wordpress.org/plugin/p2p-wpml.1.2.5.zip)

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

 [支持](https://wordpress.org/support/plugin/p2p-wpml/)

## 描述

**p2p-wpml** is a [WordPress](https://wordpress.org/) plugin that integrates [iCanLocalize’s WPML](http://wpml.org/)
and [Posts 2 Posts](http://scribu.net/wordpress/posts-to-posts).

The following table shows version compatibility between this plugin, other plugins
and WordPress:

 * P2P-WPML 1.0
    - P2P 0.8
    - WPML 2.3.3, 2.3.4
    - WordPress 3.2.1
 * P2P-WPML 1.1
    - P2P 1.3.1
    - WPML 2.5.2
    - WordPress 3.4.1
 * P2P-WPML 1.2.1
    - P2P 1.4.1
    - WPML 2.5.2
    - WordPress 3.4.1
 * P2P-WPML 1.2.2
    - P2P 1.5.2
    - WPML 2.7.1
    - WordPress 3.5.1
 * P2P-WPML 1.2.3
    - P2P 1.5.2
    - WPML 2.7.1
    - WordPress 3.5.1, 3.5.2
 * P2P-WPML 1.2.4, 1.2.5
    - P2P 1.6.2
    - WPML 2.7.1
    - WordPress 3.6.1

This plugin has been only tested with the above version combinations; different 
versions of WordPress or the plugins may break this plugin’s functionality so use
it at your own risk.

#### Features

 * **Synchronization of connections between translations**:
    - when a new connection is created between two posts (the origin and the destination),
      each translation of the origin will be connected to the translation of the
      destination in the corresponding language (if both exist);
    - when a connection between two posts is deleted, all the connections between
      the translations of those two posts will be deleted (where they exist);
    - when a new translation of a given post is created, for each connection between
      the original post and another post (the destination), a new connection is 
      created between the translated post and the translation of the destination
      post in the corresponding language (if it exists), and metadata from the original
      connection are copied to the new connection.
 * **Synchronization of connection metadata between translations**:
    - when metadata are created, updated or deleted on a connection between to posts(
      the origin and the destination), metadata of connections between the translations
      of the origin and destination posts are updated accordingly; this includes
      when a new connection is created on the original posts and its metadata are
      initialized with default values.
 * **Only connectable posts in the current language are shown in the P2P metaboxes**:
    - without this plugin, when you edit a post translation (not in the default 
      language), the P2P metaboxes only show connectable posts in the default language.

#### Caveats

 * Currently this plugin doesn’t manage multiple connections between the same posts(
   a single connection will be created between the translated posts).
 * Currently the synchronization feature is NOT retroactive: all connections created
   before plugin activation will not be synchronized (it can still be done manually
   as without the plugin).
 * This plugin can break P2P cardinality checks, so you shouldn’t specify a cardinality
   when creating connection types.

Links: [**Github**](https://github.com/cubica/p2p-wpml) | [Author’s Site](http://www.cubica.eu)
| [Twinpictures](http://plugins.twinpictures.de)

## 屏幕截图

 * [[
 * Settings management

## 安装

 1. Extract the downloadable archive inside _wp-content/plugins_, and activate in WordPress
    administration.
 2. The plugin can be configured accessing the **Posts 2 Posts** link inside the **
    WPML** settings menu.

**IMPORTANT**:

 * The synchronization feature (both connections and connection metadata) is _DISABLED_
   by default
 * The language filtering feature is _ENABLED_ by default

## 常见问题

### Question?

Answer

## 评价

此插件暂无评价。

## 贡献者及开发者

「Posts 2 Posts – WPML integration」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ lencinhaus ](https://profiles.wordpress.org/lencinhaus/)
 *   [ Baden ](https://profiles.wordpress.org/baden03/)
 *   [ twinpictures ](https://profiles.wordpress.org/twinpictures/)

[帮助将「Posts 2 Posts – WPML integration」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/p2p-wpml)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.2.5

 * Fix strict standards warnings

#### 1.2.4

 * Fix metas sync when creating connections programmatically

#### 1.2.3

 * Compatibility with WordPress 3.5.2
 * Changes init hook priority for the hack handling duplicates

#### 1.2.2

 * Compatibility with P2P 1.5.2, WPML 2.7.1 and WordPress 3.5.1
 * Directory name agnostic plugin dependency check, fixes for compatibility, duplication
   of posts and users connections

#### 1.2.1

 * Fixed notices, see issue https://github.com/cubica/p2p-wpml/issues/7

#### 1.2

 * Compatibility with P2P 1.4.1
 * Support for connections between posts and attachments/users
 * P2P meta synchronization
 * Added warning if WPML and/or P2P are not active
 * General refactoring of the synchronizer
 * Bug fixing

#### 1.1

 * Correctly loads the ui.js script for p2p v.1.3.1+
 * Compatibility with P2P 1.3.1 and WPML 2.5.2

#### 1.0

 * First version

## 额外信息

 *  版本 **1.2.5**
 *  最后更新：**12 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.5.1 或更高版本 **
 *  已测试的最高版本为 **3.6.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/p2p-wpml/)
 * 标签
 * [p2p](https://cn.wordpress.org/plugins/tags/p2p/)[posts to posts](https://cn.wordpress.org/plugins/tags/posts-to-posts/)
   [wpml](https://cn.wordpress.org/plugins/tags/wpml/)
 *  [高级视图](https://cn.wordpress.org/plugins/p2p-wpml/advanced/)

## 评级

 5 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/p2p-wpml/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/p2p-wpml/reviews/)

## 贡献者

 *   [ lencinhaus ](https://profiles.wordpress.org/lencinhaus/)
 *   [ Baden ](https://profiles.wordpress.org/baden03/)
 *   [ twinpictures ](https://profiles.wordpress.org/twinpictures/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/p2p-wpml/)

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&encrypted=-----BEGIN+PKCS7-----MIIHXwYJKoZIhvcNAQcEoIIHUDCCB0wCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYApcJG9mmUhvVsZbZbMxwTs8tSBDdq1E%2biwo%2fmGEA3DKp1MaWO04urh%2bn5e7W8QA0VLT4PxClF7HtvetQZIxeCIhyghjPHEAu%2blLQKu660Crrbem8J2CMSCiwgPdIsWxivEStRA%2bKXJ%2fEafNUN3CT1W3o2%2bIY21sKoU1acsPy7LsTELMAkGBSsOAwIaBQAwgdwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQInnGO1bQx5jKAgbhOgr%2bWRywvJo9Ey9SPB%2b90JUxX2zAFgdJrGM2%2fgW%2f5WIybb6zd%2baQgslt2NdwbcfXLOO93rVH6DBrFViIpkc6CKo0Pc6hZ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