Last active
March 21, 2020 18:47
-
-
Save lawrencebrown/9195c1bdd20c2bd81dd0013a64585826 to your computer and use it in GitHub Desktop.
Gets the_field and stores its arrays, then echo inserts them using square brackets.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $button = get_field('name_of_field'); ?> | |
<a href="<?php echo $button['url']; ?>" | |
target="<?php echo $button['target']; ?>"> | |
<?php echo $button['title']; ?> | |
</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment