Hello everyone. I am trying to display the name of a taxonomy in the front end but it shows me the ID. If I select “Term Object” instead of “Term ID” it doesn´t work…
In the code I have written:
<?php
if (get_field ('field_name')) { the_field ('field_name'); }
?>
Could anyone help? I’m going crazy with this!
Thank you very much in advance
Hi @arreguisergio
Please note that the_field
is simple just echo get_field
. If you do not understand the differences, please read the get_field
and the_field
documentation to better understand these functions.
To output the taxonomy from the selected term, please select the Term Object
return type and review the documentation here:
http://www.advancedcustomfields.com/resources/
Please also debug the data as instructed here:
http://www.advancedcustomfields.com/resources/how-to/debug/
Thanks
E
Thank you vey much Elliot!
I was be able to fix it!!