<?php
$args = array(
'post_type' => 'featured_solutions',
'post_status'=>'publish',
'order' => 'ASC'
);
$the_query = new WP_Query($args);
?>
<?php if ( $the_query->have_posts() ) : ?>
<!-- loop here -->
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<div class="col-md-6 text-center center">
<div class="col row center">
<div class="card mb-4 center">
<?php
$image = get_field('solution_icon');
if( !empty($image) ): ?>
<img class="" src="<?php echo $image; ?>" alt="<?php echo get_the_title(get_field('solution_icon')) ?>">
<?php endif; ?>
<a href="<?php echo get_field('solution_link');?>">
<div class="card-body">
<h5 class="text-center"><?php echo the_title();?></h5>
<p class="card-text text-center"><?php echo get_field('solution_short_desc');?></p>
<div class="d-flex align-items-center">
<span class="btn btn-sm btn-readmore center">read more</span>
</div>
</div>
</a>
</div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<!-- end loop -->
description:
Display the custom post type “Featured Solutions”, you can update the contents here http://webtttest.southeastasia.cloudapp.azure.com/wp-admin/edit.php?post_type=featured_solutions