'date', 'num' => 4, ), $atts ) ); // define query parameters based on attributes $options = array( 'post_type' => 'airdrop', 'posts_per_page' => $num, 'post_status' => 'publish', 'order' => $order, ); $airdroplist = new WP_Query( $options ); if ( $airdroplist->have_posts() ) { echo '
'; while( $airdroplist->have_posts() ) { $airdroplist->the_post(); ?>
>
'; the_post_thumbnail( 'airdrop-main-thumbnail' ); echo ''; } ?>
'; $airdropshow = ob_get_clean(); wp_reset_postdata(); return $airdropshow; } } }