Wordpress : display ACF checkbox label on front end
I have creted a chekbox with ACF, now I can display the values
​​of the checkboxes on my front end but I would like to show
the associated labels to.
Here is my code :
echo "<ul>";
$profession = get_field('profession');
foreach($profession as $key => $check){
echo "<li>".$check."</li>";
};
echo "</ul>";
Thanks a lot !
No comments:
Post a Comment