I’m new to ACF..
I created a text-field in ACF (WordPress backend) and the I was able to write in content.php (of my theme post) the right script to let wordpress show the field in front end page.
$asdrees = get_field( ‘address’ );
echo ‘<div class=”myclass”>’; //whatever you like to wrap around(pre) your field
echo ‘</div>’; //whatever you like to wrap around(after) your field
But when I use another type of field like Choice->Select, I have probably to use a different PHP code. Could you suggest me where I can find the list of script to put in PHP the right code for each single type of ACF field?
Thanks a lot
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users