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

  1. Pete
    Posted 3 years 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?



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Posts 2 Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.