One users post is available as a connection to anothers? What's wrong ?
-
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
- The topic ‘One users post is available as a connection to anothers? What's wrong ?’ is closed to new replies.