I have a custom post types called publications. I want to retrieve all the pages and publications. (I'm also filtering by taxonomy, but that's not what is creating the problem)
$args= array( 'post_type'=>array('publications', 'page') ); query_posts($args);
The above only returns pages, not publications. If I remove 'page' from the array and leave
then the publications are returned.
Its seems like I cannot query more than I post type at a time, contrary to what the codex explains here: http://codex.wordpress.org/Template_Tags/query_posts#Type_.26_Status_Parameters. I've tried 'post_type' = 'any' with the same results; only the pages are returned. Using WP_Query also yielded the same results.
Am I doing something wrong or is this a bug in WP 3.1 rc3?