Skip to content

Instantly share code, notes, and snippets.

@leanneromak
Created August 5, 2015 14:10
Show Gist options
  • Save leanneromak/4894bc2cdf324359edcf to your computer and use it in GitHub Desktop.
Save leanneromak/4894bc2cdf324359edcf to your computer and use it in GitHub Desktop.
Unordered list format for field
<div class="class_name" >
<ul><?php foreach(get_field('field_name') as $something) {
echo ‘<li>’.$something.’</li>’;
} ?></ul><? endif; ?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment