WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
One users post is available as a connection to anothers? What's wrong ? (1 post)

  1. Pete
    Member
    Posted 1 year ago #

    I setup a connection with this

    function my_connection_types() {
    	p2p_register_connection_type( array(
    	'name' => 'place_food',
    	'admin_box' => array(
    		'show' => 'to',
    		'context' => 'side'
    	  ),
    	'from' => 'food',
    	'to' => 'place',
    	'reciprocal' => false,
    	'cardinality' => 'many-to-one',
    	'title' => array( 'from' => 'Place', 'to' => 'Food' )
    	) );
    }

    There are two custom post types on my WordPress site, one called Food, one called Place.

    When editing a Place in the widget box i'm able to connect Foods.

    The problem is that i'm seeing every users Food listed and not just mine. How to I restrict the list of available Foods to connect to my Place. To only mine?

    Thanks

    http://wordpress.org/extend/plugins/posts-to-posts/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.