Skip to content

Instantly share code, notes, and snippets.

@SebastienGicquel
Created September 1, 2015 15:13
Show Gist options
  • Save SebastienGicquel/b4663cfd2e9b1a376c7a to your computer and use it in GitHub Desktop.
Save SebastienGicquel/b4663cfd2e9b1a376c7a to your computer and use it in GitHub Desktop.
ACF display Array values
// Lieux de tournage - Pays ----------------------------------------
$subfield_slug_pays_tournage = 'lieux_tournage_pays';
$pays_tournage = get_sub_field($subfield_slug_pays_tournage);
echo 'pays de tournage : ' . get_field($pays_tournage);
$values = get_field('lieux_tournage_pays');
if ($values) {
echo '<ul>';
foreach ($values as $value) {
echo '<li>' . $value . '</li>';
}
echo '</ul>';
}
var_dump($values);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment