Title: [Plugin: Posts 2 Posts] Adding ID / Names for old connections
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Adding ID / Names for old connections

 *  Resolved [owenwalz](https://wordpress.org/support/users/owenwalz/)
 * (@owenwalz)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-adding-id-names-for-old-connections/)
 * I have a number of connections that were registered before it was required for
   a connection to have a name / ID. They do not have an assigned ID, but they include
   a large number of connections already.
 * Is there a way to add an ID to an existing registration, without losing its connections(
   so I can update to the latest version of P2P and update my queries)?
 * Thanks,
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [owenwalz](https://wordpress.org/support/users/owenwalz/)
 * (@owenwalz)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-adding-id-names-for-old-connections/#post-2926992)
 * Also, is ‘name’ and ‘ID’ interchangeable in P2P registrations?
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-adding-id-names-for-old-connections/#post-2927001)
 * ‘id’ is deprecated. Use ‘name’.
 * See [http://wordpress.org/support/topic/plugin-posts-2-posts-all-existing-connection-gone?replies=34#post-2517920](http://wordpress.org/support/topic/plugin-posts-2-posts-all-existing-connection-gone?replies=34#post-2517920)
 *  Thread Starter [owenwalz](https://wordpress.org/support/users/owenwalz/)
 * (@owenwalz)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-adding-id-names-for-old-connections/#post-2927028)
 * Thanks again Scribu.
 * I see a variety of solutions in the thread you’ve linked to. I’m wondering which
   is most appropriate for my situation.
 * I’m currently using P2P version 1.1.3. Currently the p2p_type column in my database
   is all filled in, mostly with auto-generated hashes (apart from a few recent 
   named connections). I would like to add names in the registration, and have them
   attach to the proper existing connections somehow.
 * I have yet to upgrade, assuming there will be issues.
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-adding-id-names-for-old-connections/#post-2927042)
 * If they have hashes, you’re fine:
 * 1. Upgrade P2P.
    2. Add names to your connection types. 3. Go through each un-
   named connection type: 3.1. Assign a ‘name’ to the p2p_register_connection_type()
   call 3.2. Rename the connections using WP Admin -> Tools -> Connection Types.
 *  Thread Starter [owenwalz](https://wordpress.org/support/users/owenwalz/)
 * (@owenwalz)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-adding-id-names-for-old-connections/#post-2927056)
 * Awesome. I will try that. Thanks.
 *  Thread Starter [owenwalz](https://wordpress.org/support/users/owenwalz/)
 * (@owenwalz)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-adding-id-names-for-old-connections/#post-2927179)
 * This worked very well, thanks. It did require referencing the table to get the
   right hashes, but it wasn’t too arduous.
 * Appreciate it.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: Posts 2 Posts] Adding ID / Names for old connections’ 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [owenwalz](https://wordpress.org/support/users/owenwalz/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-adding-id-names-for-old-connections/#post-2927179)
 * Status: resolved