<?php $args = array('post_type' => array('wat', 'design_lab','post'), 'posts_per_page' => 5); $news_posts = get_posts($args); if ( !empty($news_posts) ): ?> <ul> <?php foreach ( $news_posts as $post ): setup_postdata($post); ?> <li><?php the_time('Y/m/d') ?></li> <li><a href="<?php the_permalink();?>"><?php the_title();?></a></li> <?php endforeach; wp_reset_postdata(); ?> </ul> <?php endif; ?>