Querry posts 2 ways with ACF field

<?php
$posts = get_posts( array(
    'post_type' => 'events',
));

if( $posts ) {
    foreach( $posts as $post ) { ?>
    <?php the_field( 'start_date', $post ) ;  ?>
     <?php              
    }
}
<?php
$args = array(
    'posts_per_page' => '0',
    'post_type' => 'events',
    'offset' => '0',
);
$query_query = new WP_Query( $args );
if ( $query_query->have_posts() ) : ?>
        <div class="row">
        <?php
            while ( $query_query->have_posts() ) :
            $query_query->the_post(); 
            $postID = get_the_ID(); ?>
                <div class="column">
                        <?php the_field( 'start_date', $postID ) ;  ?>
                </div><!--columns/slide-->
            <?php
            endwhile; ?>
        </div><!--row-->
<?php else : ?>
    <p>Sorry,no posts found.</p>
<?php endif; 
wp_reset_postdata();
?>

Search the site


Address

123 Main Street
Town
City
P05T C0D3

Tel: 01234 567 899

Mob: 01234 567 899

Email: ben@gomopress.com


Copyright 2023. Blah blah blah Company Limited