Title: [Plugin: Posts 2 Posts] metdata between associated post types
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] metdata between associated post types

 *  Resolved [Jon Dingman](https://wordpress.org/support/users/jdingman/)
 * (@jdingman)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-metdata-between-associated-post-types/)
 * I’m trying to figure out how ot add metadata between post types.
 * For example,
 * PostType1 = Person1
    PostType2 = Product1, Product2, Product3
 * Person1 is a..
 * Manager, Product1
    Support, Product2 Engineer, Product3
 * Basically being able to associate a “title” with the their role over the product.
 * After looking at the [documentation](https://github.com/scribu/wp-posts-to-posts/wiki/Connection-information),
   it looks like I might need to use “Special” to accomplish this.
 * Is this the best route to use? Or is there a better way to accomplish this.
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-metdata-between-associated-post-types/#post-2912027)
 * ‘special’ is just an arbitrary connection field key. What you need is a plain
   text field:
 *     ```
       p2p_register_connection_type( array(
   
       	...
   
       	'fields' => array(
       		'role' => array(
       			'title' => 'Role',
       			'type' => 'text',
       		)
       	)
       ) )
       ```
   
 * Either that, or a ‘select’ field. See ‘role’ in the wiki.
 *  Thread Starter [Jon Dingman](https://wordpress.org/support/users/jdingman/)
 * (@jdingman)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-metdata-between-associated-post-types/#post-2912029)
 * PERFECT!
 * I even got the data to display correctly using the examples.
 * Great work again on the plugin, awesome job 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Posts 2 Posts] metdata between associated post types’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/posts-to-posts_7a8e9d.svg)
 * [Posts 2 Posts](https://wordpress.org/plugins/posts-to-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-to-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-to-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-to-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-to-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-to-posts/reviews/)

## Tags

 * [metadata](https://wordpress.org/support/topic-tag/metadata/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jon Dingman](https://wordpress.org/support/users/jdingman/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-metdata-between-associated-post-types/#post-2912029)
 * Status: resolved