Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This works for SINGLE CHECKBOX — when checked, it returns the word 'on' but doesn't show the Description on the front-end?
- <p><?php echo get_post_meta( $post->ID, '_cmb_test_checkbox', true); ?></p>
- Neither of these work for MULTI-CHECKBOXES: ( i know they're not too different)
- <p><?php $value = get_post_meta( $post->ID, '_cmb_test_multicheckbox', true ); echo $value; ?></p>
- <p><?php echo get_post_meta( $post->ID, '_cmb_test_multicheckbox', true); ?></p>
- This works fine for RADIO BUTTONS (but not for MULTI-CHECKBOXES:)
- <p><?php $radios = get_post_meta( get_the_ID( ), '_cmb_test_radio', false );
- foreach ( $radios as $radio ) {
- echo $radio;
- }
- ?></p>
- This Does NOT work for RADIOS...
- <p><?php $radios = get_post_meta( get_the_ID( ), '_cmb_test_radio', false ); echo $radio; ?></p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement