I'd like to display advanced custom fields on my archive page only but the following code keeps giving me an error:
<?php
do_action( 'editorial_post_categories' );
if ( is_single() ) {
// do something or nothing
} else {
<?php the_field('acf_123'); ?>
}
?>
The advanced custom field I like to display is "acf_123"