Title: [Plugin: Posts 2 Posts] UI   api suggestions
Last modified: August 19, 2016

---

# [Plugin: Posts 2 Posts] UI api suggestions

 *  ResolvedPlugin Contributor [Alex Ciobica](https://wordpress.org/support/users/ciobi/)
 * (@ciobi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-ui-api-suggestions/)
 * I know you’re working on improvements on the UI and I’m not sure what you’re 
   planning but I’d like to throw some ideas at you:
    - Support for asterisk in the search box to show all, or the addition of a show
      all button. This could either just generate a list with all results or add
      a drop down with all items to select from to avoid issues when there are too
      many posts.
    - The ability to customize all interface elements elements at connection registering.
      Also, the addition of support for different messages for each post type when
      reciprocal relations are involved.
       E.g.:
    -     ```
          $args = array(
          		'from' => 'book',
          		'to' => 'author',
          		'reciprocal' => true,
          		'title' => array( 'Authors', 'Books written by this Author' ),
          		'label' => array( 'Search authors', 'Search books' ),
          		'description' => array ( 'Use * to see all authors. Click to add', 'Use * to see all books. Click to add.' )
          	);
          p2p_register_connection_type( $args );
          ```
      
    - would result in:
       [http://i.imgur.com/lblI8.png](http://i.imgur.com/lblI8.png)
      for the “Add book” perspective.
 * Tell me if I can help.

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

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-ui-api-suggestions/#post-1979299)
 * Here’s what the new UI looks like:
 * [http://wordpress.org/support/topic/plugin-posts-2-posts-how-to-add-info-to-connection/page/2?replies=62#post-2002746](http://wordpress.org/support/topic/plugin-posts-2-posts-how-to-add-info-to-connection/page/2?replies=62#post-2002746)
 * The “Show all” button has been on my mind for some time. Care to make a mock-
   up with it?
 * As for the labels, they’re translatable, so they’re already customizable in a
   way. Will revisit after the UI is more stable.
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-ui-api-suggestions/#post-1979316)
 * I was thinking of adding some tabs, like on the menu page: “Recent”, “View All”
   and “Search”.
 * By the way, if you really want to control every character in the box, you can
   set the ‘box’ argument to your own class and overwrite the box() method.
 *  Plugin Contributor [Alex Ciobica](https://wordpress.org/support/users/ciobi/)
 * (@ciobi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-ui-api-suggestions/#post-1979432)
 * > The “Show all” button has been on my mind for some time. Care to make a mock-
   > up with it?
 * Maybe [something like this](http://i.imgur.com/7NzkL.png) (when the show button
   is pressed)?
    And [like this ](http://i.imgur.com/5Ciju.png), when searching 
   for something. The buttons at the bottom could be replaced by tabs.
 * The info button could show the description in a speech bubble.
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-ui-api-suggestions/#post-1979439)
 * I like the + icon. It allows the title link to always send you to that post’s
   editing screen, regardless if the connection was created yet or not. Are those
   icons available somewhere?
 * With those in place and the “Type to search for books” text, is the info button
   even necessary?
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-ui-api-suggestions/#post-1979442)
 * Also keep in mind that it can get pretty wide:
 * > [View post on imgur.com](https://imgur.com/0E6yx)
 *  Plugin Contributor [Alex Ciobica](https://wordpress.org/support/users/ciobi/)
 * (@ciobi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-ui-api-suggestions/#post-1979447)
 * First, lemme say, this is fun!
 * > I like the + icon. It allows the title link to always send you to that post’s
   > editing screen, regardless if the connection was created yet or not.
 * Actually I imagined it as a visual reminder that when clicked, that item is added.
   
   [This could be a better solution. ](http://i.imgur.com/IRhng.png)
 * [The Fields icon](http://markup.io/v/sargy02kb3bb) could launch a speech bubble
   modal with the list of fields, as for many fields the interface becomes unusable
   in the narrow column.
 * > With those in place and the “Type to search for books” text, is the info button
   > even necessary?
 * Probably not. Can be dropped.
 * > Also keep in mind that it can get pretty wide…
 * [Maybe something like this for the wide version?](http://i.imgur.com/ghPB4.png)
   
   The only weird thing is the space after the search input.
 * [Here are the icons](http://cl.ly/5JfS)
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-ui-api-suggestions/#post-1979450)
 * Are those icons made by you? If so, awesome! and would you be willing to release
   them under the GPL?
 * If not, I need to know the original source, for licensing info.
 * > The Fields icon could launch a speech bubble modal with the list of fields,
   > as for many fields the interface becomes unusable in the narrow column.
 * No no no; modal windows are evil. I’m thinking of automatically making it wide
   if the number of fields is larger than 1.
 *  [Modesty](https://wordpress.org/support/users/modesty/)
 * (@modesty)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-ui-api-suggestions/#post-1979451)
 * check [these](http://www.famfamfam.com/lab/icons/silk/) icons
 *  Plugin Contributor [Alex Ciobica](https://wordpress.org/support/users/ciobi/)
 * (@ciobi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-ui-api-suggestions/#post-1979452)
 * > No no no; modal windows are evil.
 * 🙂
 * > I’m thinking of automatically making it wide if the number of fields is larger
   > than 1.
 * That’ll work.
 * > If not, I need to know the original source, for licensing info.
 * Not mine. They’re [Alexey Egorov](http://burlesck.livejournal.com/1567.html)‘
   s who’s in dire need of a proper site.
 * Lemme know if want help with the coding.
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-ui-api-suggestions/#post-1979481)
 * Latest incarnation: [http://i.imgur.com/xln2Y.png](http://i.imgur.com/xln2Y.png)(
   no “show recent” button yet).
 * Feel free to make a fork on github to add it, if you’re itching to code. 🙂
 * [@modesty](https://wordpress.org/support/users/modesty/): Yeah, the silk icon
   set is very popular, but kind of distracting.
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-ui-api-suggestions/#post-1979516)
 * Lookin’ good 😀
 *  [owenwalz](https://wordpress.org/support/users/owenwalz/)
 * (@owenwalz)
 * [15 years ago](https://wordpress.org/support/topic/plugin-posts-2-posts-ui-api-suggestions/#post-1979579)
 * Great interface. An auto-fill for relationship fields would be very helpful (
   sorry to be redundant here… this was mentioned in another post).
 *  [WPMU DEV – Your All-in-One WordPress Platform](https://wordpress.org/support/users/wpmudev/)
 * (@wpmudev)
 * [15 years ago](https://wordpress.org/support/topic/plugin-posts-2-posts-ui-api-suggestions/#post-1979580)
 * There’s no point in repeating the same request over and over, especially since
   you created a separate thread for it.
 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [15 years ago](https://wordpress.org/support/topic/plugin-posts-2-posts-ui-api-suggestions/#post-1979581)
 * What WPMUDEV said (which was actually me :P).

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

The topic ‘[Plugin: Posts 2 Posts] UI api suggestions’ 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/)

 * 14 replies
 * 5 participants
 * Last reply from: [scribu](https://wordpress.org/support/users/scribu/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/plugin-posts-2-posts-ui-api-suggestions/#post-1979581)
 * Status: resolved