Created
June 30, 2022 13:49
-
-
Save joseph-farruggio/d287dc89d5e2f67406a26076630e0aaf to your computer and use it in GitHub Desktop.
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 | |
$args = wp_parse_args( | |
$args, | |
array( | |
'button' => get_field('button') | |
) | |
); | |
if ($args['button]): ?> | |
<a href="<?= esc_url($args['button]['url']); ?>" target="$args['button]['target']"> | |
<?= $args['button]['title']; ?> | |
</a> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment