Inserting random posts
Combining two different custom post types in one single query, and still being able to control the number of each type of posts to be displayed can be a little tricky. If one single query is used with post_type = array( ‘type1’, ‘type2’…. ), you have to set posts_per_page to a considerably high number. Which … Read more