I am trying to query from Custom Post Type and ACF, unable to display image on the front page. Following is my wp_query
<?php
$args = array(
'post_type' => 'property',
'post_status' => 'publish',
'posts_per_page' => '4'
);
$property_loop = new WP_Query( $args );
if ( $property_loop->have_posts() ) :
while ( $property_loop->have_posts() ) : $property_loop->the_post();
// Set variables
$title = get_the_title();
$description = get_the_content();
$property_image2 = get_field('property_image2');
// Output
?>
<div class="property">
<img src="<?php echo $property_image1; ?>" alt="<?php echo $title; ?>">
<h2><?php echo $title; ?></h2>
<img src="<?php echo $property_image1; ?>" alt="property-detail" class="property-detail align-right">
<?php echo $description; ?>
<p><a href="<?php echo $download; ?>" target="_blank" name="Spec Sheet">Download Spec Sheet</a></p>
</div>
<?php
endwhile;
wp_reset_postdata();
endif;
?>
Can anyone assist me?