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

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://tw.wordpress.org/plugins/p2p-wpml/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/p2p-wpml/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/p2p-wpml/#installation)
 * [開發資訊](https://tw.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 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.6.1**
 *  語言
 * [English (US)](https://wordpress.org/plugins/p2p-wpml/)
 * 標籤:
 * [p2p](https://tw.wordpress.org/plugins/tags/p2p/)[posts to posts](https://tw.wordpress.org/plugins/tags/posts-to-posts/)
   [wpml](https://tw.wordpress.org/plugins/tags/wpml/)
 *  [進階檢視](https://tw.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%2bIY21sKoU1acsPy7LsTELMAkGBSsOAwIaBQAwgdwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQ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