I want to loop through 3 custom post types + posts and display the latest post from each.
This is what I have so far. This only takes the four most recent posts but not one only from each post type. Many thanks in advance
<?php $args = array(
'post_type' =>. array('post','mixes','artists','releases'),
'posts_per_page' => '4',
);
query_posts( $args );
while ( have_posts() ) : the_post(); ?>
do stuff here
<?php endwhile; ?>
{}
sign, click on that sign. This will add your code in a codeblock, as you can see in my edit. BTW, don't usequery_posts
query_posts
: wordpress.stackexchange.com/a/1755/47733