Custom Metaboxes and Fields (CMB) will create metaboxes and forms with custom fields that will blow your mind. This is version 2.0 and has been completely rewritten.
@anilshah694 Follow the URL:-
Hello,
I'm using cmb object type as page, purpose for theme option.'object_types' => array( 'page' ),
But can't display in post loop.if ( have_posts() ) : while ( have_posts() ) : the_post();
if(get_post_meta( get_the_ID(), 'CUSTOM FIELD', 1 )) {
echo "YES!";
}
endwhile; endif;
Outside of post loop works ok, anyone please help me.