This code receives 10 messages of all types associated with term_name;
global $wp_query; query_posts( array( "taxonomy_name" => "term_name", 'showposts' => 10 ) );
This code receives 10 messages of a custom message type message;
global $wp_query; query_posts( array( 'post_type' => 'message' 'showposts' => 10 ) );
However, this code always ignores the post_type requirement, but still selects all message types associated with the term name;
global $wp_query; query_posts( array( 'post_type' => 'message' , "taxonomy_name" => "term_name", 'showposts' => 10 ) );
I do not see how both can work individually, but together they do not, if this cannot be a mistake - any thoughts?
Chris source share