<?php wp_reset_postdata(); $args = array( 'post_type' => 'team', 'posts_per_page' => 100 ); $the_query = new WP_Query( $args ); ?> <div class="container"> <div class="row"> <?php if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <div class="col-md-4"> <div class="card member"> <a href="<?php the_permalink(); ?>"> <img class="card-img-top" src="<?php the_field('image'); ?>" alt=""> </a> <div class="card-body"> <h3 class="card-title"><?php the_title(); ?></h3> <p class="card-text hidden"><?php the_field('description'); ?></p> <a class="hidden" href="<?php the_permalink(); ?>" class="btn btn-primary">Read more</a> </div> </div> </div> <?php endwhile; endif; ?> </div><!--row--> </div><!--container--> <?php wp_reset_postdata(); ?>