Title: [Plugin: Posts 2 Posts] Connection lost after upgrade
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Connection lost after upgrade

 *  Resolved [salocined](https://wordpress.org/support/users/salocined/)
 * (@salocined)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-connection-lost-after-upgrade/)
 * False manip, and I updated the plugin from 0.8 to 1.1.6 in 1 click…
 * Lost my connections, grrrr….
 * I modified my p2p_register_connection_type to add the name of the connection,
   but all old connections are not visible. If I create a new connection, it does
   display.
 * MY old p2p_register
    `p2p_register_connection_type( 'consultant', 'page', true);`
 * My Old wp_query
    `$consultant_query = new WP_Query( array('suppress_filters' 
   => false, 'post_type' => 'consultant','connected' => $post->ID) );`
 * My New p2p_register
    `p2p_register_connection_type( array('name' => 'consultant_to_pages','
   from' => 'consultant','to' => 'page') );`
 * My New WP_Query
    `$consultant_query = new WP_Query( array('connected_type' =>'
   consultant_to_pages', 'connected_items' => get_queried_object_id(),'nopaging'
   => true, ) );`
 * Is there any way I can get them back without recreating each connection manually?
 * help…
    thx
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [salocined](https://wordpress.org/support/users/salocined/)
 * (@salocined)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-connection-lost-after-upgrade/#post-2649055)
 * Ok, I fixed my issue by adding, manually, the connection type name to my wp_p2p
   table, via phpmyadmin.
    I added the connection name, ie consultant_to_pages to
   my p2p_type field in table.
 * This seems to have re-established my connections properly.
    this post helped 
   me [http://wordpress.org/support/topic/plugin-posts-2-posts-all-existing-connection-gone?replies=14#post-2517883](http://wordpress.org/support/topic/plugin-posts-2-posts-all-existing-connection-gone?replies=14#post-2517883)

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Posts 2 Posts] Connection lost after upgrade’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/posts-to-posts_7a8e9d.svg)
 * [Posts 2 Posts](https://wordpress.org/plugins/posts-to-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-to-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-to-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-to-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-to-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-to-posts/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [salocined](https://wordpress.org/support/users/salocined/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-connection-lost-after-upgrade/#post-2649055)
 * Status: resolved