Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $the_query = new WP_Query( $args );
- if ( $the_query->have_posts() ) {
- while ( $the_query->have_posts() ) {
- $the_query->the_post();
- STUFF
- }
- wp_reset_postdata();
- }
- if ($the_query->current_post == 0) {
- // retrieve featured image, title and content }
- else {
- // retrieve title only }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement