[Plugin: Posts 2 Posts] Reciprocal only working one way
-
Dear Scribu,
I’m having a reciprocal relationship between my custom post types: ‘diensten’ and ‘projecten’. Using the following code:
function my_connection_types() { // Make sure the Posts 2 Posts plugin is active. if ( !function_exists( 'p2p_register_connection_type' ) ) return; // Keep a reference to the connection type; we'll need it later global $my_connection_type; $my_connection_type = p2p_register_connection_type( array( 'from' => 'diensten', 'to' => 'projecten', 'reciprocal' => true ) ); } add_action( 'init', 'my_connection_types', 100 );
However this seems to be alright. I’m only able to update the connection via the custom post type ‘diensten’ (the from param). Though it shows up on the custom post type ‘projecten’ edit page, I’m able to delete a current relationship, but I’m not able to create a relationship (selecting one of the ‘diensten’ posts).
Could you help me, or tell me what I’m doing wrong?
Thanks in advance.
Kind regards,Kay Heunen
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘[Plugin: Posts 2 Posts] Reciprocal only working one way’ is closed to new replies.