Title: [Plugin: Posts 2 Posts] How to add Admin Columns?
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] How to add Admin Columns?

 *  Resolved [dragonet35](https://wordpress.org/support/users/dragonet35/)
 * (@dragonet35)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-how-to-add-admin-columns/)
 * I am putting together a site for the small library my office has, and I am utilizing
   your wonderful plugin as a way to do check-in/check-out of materials (ordinary
   post type) linked to Patrons (a custom post type). I have also been trying to
   figure out how to get the linked info to show up in custom columns on the manage
   posts screen, without success. So after the Posts 2 Posts update yesterday, I
   was very exited to see the new screenshot (3rd one down) that shows the titles
   of connected posts displayed in the Admin Columns on the Manage Posts page.
 * I can’t quite see what I need to do to take advantage of the new column.php and
   column-factory.php and activate this new functionality. Is it also possible to
   use this to display information from other fields I created for the P2P metabox?
 * Thank you for your time.
 * [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)

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-how-to-add-admin-columns/#post-2428888)
 * You just need to add this to your p2p_register_connection_type() call:
 *     ```
       'admin_column' => 'any'
       ```
   
 * It is not currently possible to display other connection fields.
 *  Thread Starter [dragonet35](https://wordpress.org/support/users/dragonet35/)
 * (@dragonet35)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-how-to-add-admin-columns/#post-2428889)
 * Excellent! Thank you so much – it works perfectly!
 *  [daxitude](https://wordpress.org/support/users/daxitude/)
 * (@daxitude)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-how-to-add-admin-columns/#post-2429067)
 * I’m trying to use the admin_column param in multiple calls to register_connection_type
   to display columns for more than one connection, but it seems like only one column
   will show, namely the last one registered.
 * Is it possible to get multiple columns to show for multiple connections?
 * I’ve also tried adding the columns with my own code and ended up with some post
   id weirdness. It sort of worked but some posts would blank or with incorrect 
   connections in 2nd and 3rd columns. Again, I’m trying to create 3 columns to 
   show 3 different connections.
 * Thanks for your help.
 *  [daxitude](https://wordpress.org/support/users/daxitude/)
 * (@daxitude)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-how-to-add-admin-columns/#post-2429068)
 * OK, I’m looking at column.php and it looks like the add_column function will 
   overwrite attempts to create multiple columns with the same column name of ‘connected.’
 * Also, I just noticed that all the post_type connections are showing up in the
   column, not just what would make the CPT named in the column name.
 * And, the connected items are wrapped in li’s but there’s no ul or ol enclosing
   them.
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-how-to-add-admin-columns/#post-2429069)
 * [@daxitude](https://wordpress.org/support/users/daxitude/): Should be fixed in
   the [development version](http://downloads.wordpress.org/plugin/posts-to-posts.zip)(
   1.2-alpha).
 *  [daxitude](https://wordpress.org/support/users/daxitude/)
 * (@daxitude)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-how-to-add-admin-columns/#post-2429070)
 * Sweet! Many thanks.

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

The topic ‘[Plugin: Posts 2 Posts] How to add Admin Columns?’ 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
 * 3 participants
 * Last reply from: [daxitude](https://wordpress.org/support/users/daxitude/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-how-to-add-admin-columns/#post-2429070)
 * Status: resolved