Calling two images at a time? A better way?
Yep – it is pretty inefficient. Here is a rewrite: <div id=”engagement”> <?php $images = new WP_Query( array( ‘post_parent’ => get_the_ID(), ‘post_status’ => ‘inherit’, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘order’ => ‘ASC’, ‘orderby’ => ‘menu_order ID’, ‘offset’ => 0, ‘posts_per_page’ => 6, // show six images total ‘update_post_term_cache’ => false, ) ); $count = … Read more