[Plugin: Posts 2 Posts] Metaboxes and front-end connections gone after upgrade
-
Hi there,
Thanks for the amazing plugin. Having some issues with the recent upgrade though as the metabox in admin and the connections on the front-end have disappeared. Debug error given was:
<b>Notice</b>: Trying to get property of non-object in ... /wp-content/plugins/posts-to-posts/core/side.php</b> on line <b>80</b><br /> <b>Notice</b>: Trying to get property of non-object in ... /wp-content/plugins/posts-to-posts/core/side.php</b> on line <b>84</b><br />
Connections show up fine in admin under tools > connection types with the right format and number of connections displayed. They just don’t display on the single post edit page or the CPT’s single template. Connection between the two CPTs seems to be fine, just causing problems in the connection between CPT and Posts.
Here’s the registration info:
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' => 'partners_to_iecs', 'from' => 'ac_partner', 'to' => 'ac_iec', 'reciprocal' => true ) ); p2p_register_connection_type( array( 'name' => 'posts_to_iecs', 'from' => 'posts', 'to' => 'ac_iec' ) ); p2p_register_connection_type( array( 'name' => 'posts_to_partners', 'from' => 'posts', 'to' => 'ac_partner' ) ); } add_action( 'wp_loaded', 'my_connection_types' );
I’m wondering if I missed something in the plugin update notes that I was supposed to change. Many thanks.
- The topic ‘[Plugin: Posts 2 Posts] Metaboxes and front-end connections gone after upgrade’ is closed to new replies.