Displaying Custom Field checkbox
-
Hi,
I use the Custom Field Template plugin and it works great.
I need to use some checkboxes to display a number of guides on a trip. I use the following to echo data input from the custom field:
<?php if((get_post_meta($post->ID, "guides", true))) { ?> Guides on this tour: <?php echo get_post_meta($post->ID, 'guides', TRUE); ?><?php } ?>
But instead of displaying all the names selected by a checkbox button, it just lists the first one. What am I doing wrong?
Thanks Jono
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Displaying Custom Field checkbox’ is closed to new replies.