Skip to content

Instantly share code, notes, and snippets.

@landru247
Last active December 16, 2015 13:59
Show Gist options
  • Save landru247/5445557 to your computer and use it in GitHub Desktop.
Save landru247/5445557 to your computer and use it in GitHub Desktop.
WordPress: AFC - checks if a value exists.
<?php $values = get_field('foo'); ?>
<?php if($values) { ?>
{markup here}
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment