WordPress.org

Support

Support » Plugins and Hacks » Posts 2 Posts » [Resolved] [Plugin: Posts 2 Posts] metdata between associated post types

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author scribu

    @scribu

    ‘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.

    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 ‘[Resolved] [Plugin: Posts 2 Posts] metdata between associated post types’ is closed to new replies.
Skip to toolbar