Title: [Plugin: Posts 2 Posts] WP_Query
Last modified: August 19, 2016

---

# [Plugin: Posts 2 Posts] WP_Query

 *  [Cristiano](https://wordpress.org/support/users/iclapton/)
 * (@iclapton)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-wp_query/)
 * Hi friends,
 * This is my query:
 *     ```
       $the_query = new WP_Query( array(
         	'post_type' => 'texto',
         	'connected' => $post->ID,
       ) );
       ```
   
 * How could I use the default criteria like:
 * `$the_query = new WP_Query('showposts=1&orderby=post_date&order=desc');`
 * I mean, how to query connected posts limiting the “showposts=1”, for exemple?
 * Thanks!!!

Viewing 1 replies (of 1 total)

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-wp_query/#post-1813554)
 * Erm… like this:
 *     ```
       $the_query = new WP_Query( array(
       	'post_type' => 'texto',
       	'connected' => $post->ID,
        	'showposts' => 1
       ) );
       ```
   
 * Or are you asking something else?

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Posts 2 Posts] WP_Query’ 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: [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-wp_query/#post-1813554)
 * Status: not resolved