Why can’t I query more than 1 post type at a time?

Hi @Bundarr:

Testing the following basic example as a standalone file it looks like it works as expected and not as you are reporting:

<?php

include '../wp-load.php';
header('Content-type: text/plain');
$q = new WP_Query(array(
  'post_type'=>array('publications', 'page')
  'posts_per_page' => -1,
));
echo "SQL: {$q->request}\n";
foreach($q->posts as $post) {
  echo "{$post->post_name} - {$post->post_type}\n";
}

So, I can only assume that you have some plugins or theme code that is somehow blocking?

Or maybe it is as simple as missing a 'posts_per_page' => -1 argument and thus only displaying a limited number and making it seem like it’s not working? With 'posts_per_page' the query would look like this (-1 means ‘no limit’):

$q = new WP_Query(array(
  'post_type'=>array('publications', 'page')
  'posts_per_page' => -1,
));