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.
Hello CMB2 gang.
It's been a while since I've included CMB2 on a project and, as I'm getting a new theme (not for distribution) set up, I'm wondering what the current best practice is?
I'm thinking it's one of the following:
I'm also curious if the best method is different depending on my purpose. Say, if I were building a plugin for redistribution, would I include CMB2 as a dependency in the project or just note that users need to install the official CMB2 plugin and leave it out?
@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.