Title: [Plugin: Posts 2 Posts] Usage | Filtering
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Usage | Filtering

 *  Resolved [mantone](https://wordpress.org/support/users/mantone/)
 * (@mantone)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-usage-filtering/)
 *     ```
       p2p_register_connection_type( array(
               'name' => 'staff_to_staff',
               'from' => 'staff',
               'to' => 'staff',
               'title' => array( 'from' => 'Assisted by', 'to' => 'Assists' ),
               'can_create_post' => false,
               'connected_query' => array(
                   'taxonomy_name' => 'position',
                   'taxonomy_term' => 'assistant'
               ),
               'admin_box' => array(
                   'show' => 'any',
                   'context' => 'advanced',
               )
           ) );
       ```
   
 * I’ve got a Custom Post type = ‘staff’
    I’ve got a custom Taxonomy = ‘position’
   And i want to ‘position’ terms = ‘assistant’ to show up in the ui.
 * This is possible right? Am i totally missing something when using the ‘connected_query’
   parameter
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-usage-filtering/#post-3012811)
 * The problem is that you’re passing ‘connected_query’ directly to `p2p_register_connection_type()`
   which won’t work.
 * ‘connected_query’ is a parameter for `WP_Query` or `get_users()`.
 * > And i want to ‘position’ terms = ‘assistant’ to show up in the ui.
 * Huh? If you mean “show only posts with ‘position’ => ‘assistant'”, then you can
   use the ‘p2p_connectable_args’ filter:
 * [https://github.com/scribu/wp-posts-to-posts/wiki/Admin-box-filters](https://github.com/scribu/wp-posts-to-posts/wiki/Admin-box-filters)

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Posts 2 Posts] Usage | Filtering’ 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
 * 2 participants
 * Last reply from: [scribu](https://wordpress.org/support/users/scribu/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-usage-filtering/#post-3012811)
 * Status: resolved