• 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

    (@scribu)

    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.