Can’t figure out query logic

If I follow your description right you want posts which have any $typeIDs, but all of $unionIDs ? Aside from wrong meta_query choice, you miss operator argument which specifies which kind of match you want. I think your query should be something like this: ‘tax_query’ => array( ‘relation’ => ‘AND’, // you want both conditions … Read more

Exclude post formats in custom loop

$args=array( ‘paged’=>$paged, //Pulls the paged function into the query ‘posts_per_page’=> 4, //Limits the amount of posts on each page ‘post_type’=>’post_type’, //Set your allowed post types here ‘orderby’ => ‘title’, ‘order’ => ‘ASC’ ); query_posts($args); For more reference refer this. You can pass the allowed post_type array to post_type argument in arguments array.

Remove 5 latest posts from the loop

I don’t know if WP has a built in feature for it’s query but you could do something like this: $count = 0; if(have_posts()) : while (have_posts()) : the_post(); if ($count < 4 ) { $count++; } else { … your blogroll code … } endwhile; endif;