'community', 'posts_per_page' => 100 ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); if (get_field('show-on-community-page')) { echo '
'; echo ''; if(get_field('sold_out')){ echo ''; } echo ''; echo ''; ?> '; } endwhile; ?>