Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Gets the_field and stores its arrays, then echo inserts them using square brackets.
<?php $button = get_field('name_of_field'); ?>
<a href="<?php echo $button['url']; ?>"
target="<?php echo $button['target']; ?>">
<?php echo $button['title']; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment