Hello;
In the Verve Meta Boxes, i use the "checkbox" as "Field type", and then i enter the "values" like this : product01,product02,product03,product04,product05
In my post, i check the box for : product02 & product04.
In my theme, i use this code to show the "values" i select
<?php if($var_offres !== '') { ?>
<li><?php echo $var_offres; ?></li>
<?php } ?>
but it show only the last value : product04 !
so i try to use the foreach, but it dont work, this is the code :
<?php $var_offres = get_post_meta($post->ID, "offres", TRUE); foreach($var_offres as $post) : ?>
<li>
<?php echo $var_offres; ?>
</li>
<?php endforeach; ?>
and this
<?php $var_offres = get_post_meta($post->ID, "offres", TRUE); foreach($var_offres as $post) : ?>
<?php if($var_offres !== '') { ?>
<li><?php echo $var_offres; ?></li>
<?php } ?>
<?php endforeach; ?>
pls how can i liste all the value i select?
Thanks