', esc_html__( ', ', 'baskerville-2' ), '' ); ?> ID; else : $attachment_parent = get_the_ID(); endif; $images = get_posts( array( 'post_parent' => $attachment_parent, 'post_type' => 'attachment', 'numberposts' => 999, // show a large but unlikely number 'post_status' => null, 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', ) ); /* * Grab the IDs of all the image attachments for this post */ if ( $images ) { ?>