M
M
Maxim Borisenko2020-07-18 10:49:42
WordPress
Maxim Borisenko, 2020-07-18 10:49:42

Why doesn't the ACF field display text?

ACF plugin, I created custom fields

Logo

<?php if( get_field('logo') ): ?>
<img class="logo" src="<?php the_field('logo'); ?>" alt="atlant-logo">
<?php endif; ?>


Location (plain text)

<div class="post_code"><?php the_field('geo_target'); ?></div>


And phone

<div class="phone"><?php the_field('phone_one'); ?></div>


The logo displays, the location too, but the phone does not.
I checked everything 1000 times, everything is correct, what did I do wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question