Support » Plugin: Posts 2 Posts » [Plugin: Posts 2 Posts] metdata between associated post types
4 years, 9 months ago
I’m trying to figure out how ot add metadata between post types.
PostType1 = Person1
PostType2 = Product1, Product2, Product3
Person1 is a..
Basically being able to associate a “title” with the their role over the product.
After looking at the documentation, 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.
‘special’ is just an arbitrary connection field key. What you need is a plain text field:
'fields' => array(
'role' => array(
'title' => 'Role',
'type' => 'text',
Either that, or a ‘select’ field. See ‘role’ in the wiki.
I even got the data to display correctly using the examples.
Great work again on the plugin, awesome job 🙂