Title: [Plugin: Posts 2 Posts] Custom meta box: WP_Query call vs get_connected()?
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Custom meta box: WP_Query call vs get_connected()?

 *  Resolved [Manny Fleurmond](https://wordpress.org/support/users/funkatronic/)
 * (@funkatronic)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-custom-meta-box-wp_query-call-vs-get_connected/)
 * Working on a custom meta box using the P2P core. I noticed something while experimenting:
   I tried using the WP_Query example and got 0 results, but when I used the get_connected
   function, I got the results I was looking for. Is there a reason why that is?
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Manny Fleurmond](https://wordpress.org/support/users/funkatronic/)
 * (@funkatronic)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-custom-meta-box-wp_query-call-vs-get_connected/#post-3069297)
 * And I found a solution: connected_direction needed to be set to ‘any’ to make
   it work

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Posts 2 Posts] Custom meta box: WP_Query call vs get_connected()?’
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/)

## Tags

 * [admin](https://wordpress.org/support/topic-tag/admin/)
 * [wp_query](https://wordpress.org/support/topic-tag/wp_query/)

 * 1 reply
 * 1 participant
 * Last reply from: [Manny Fleurmond](https://wordpress.org/support/users/funkatronic/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-custom-meta-box-wp_query-call-vs-get_connected/#post-3069297)
 * Status: resolved