I'm using WPAlchemy to create meta boxes. What I want to do to to dynamically create a group of check boxes with post titles.
In other words, I want to replace a, b and c with the query of post titles
<?php $items = array('a', 'b', 'c'); ?>
<?php while ($mb->have_fields('cb_ex', count($items))): ?>
<?php $item = $items[$mb->get_the_index()]; ?>
<input type="checkbox" name="<?php $mb->the_name(); ?>" value="<?php echo $item; ?>"<?php $mb->the_checkbox_state($item); ?>/> <?php echo $item; ?><br/>
<?php endwhile; ?>
I appreciate your help, as you may have noticed I'm not a code expert.