[Plugin: Posts 2 Posts] P2P not working with custom post types?
-
I have installed the P2P plugin and have verified that it’s working by using the example code, connecting posts to pages. This works as expected, with the connections box showing up in the editor sidebar. However, when I try to connect two custom post types, it’s not showing up.
I’ve created the two post types using the “Types” plugin, if that makes a difference. Here’s the code I’m using in functions.php:function my_connection_types() { // Make sure the Posts 2 Posts plugin is active. if ( !function_exists( 'p2p_register_connection_type' ) ) return; p2p_register_connection_type( array( 'name' => 'homes_to_communities', 'from' => 'homes', 'to' => 'communities' ) ); } add_action( 'init', 'my_connection_types', 100 );
This plugin will be a perfect solution to my problem if I can get it to work… Thanks in advance!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘[Plugin: Posts 2 Posts] P2P not working with custom post types?’ is closed to new replies.