A
A
Artem Fedorov2020-08-09 14:20:21
WordPress
Artem Fedorov, 2020-08-09 14:20:21

Advanced Custom Filed - how to display field values ​​in a link?

I'm trying to display the value of the field in the link:
I sold it and so

<a href="tel:<?= get_field('nomer_telefona'); ?>">[acf field="nomer_telefona"]</a>
 и <a href="tel:<?= the_field('nomer_telefona'); ?>">[acf field="nomer_telefona"]</a>

Displayed just a link does not display the value of the field, but only get_field('nomer_telefona'), the shortcode works adequately.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lord_Dantes, 2020-08-09
@Lord_Dantes

<?php echo get_field('nomer_telefona'); ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question