Viewing 16 replies (of 16 total)
  • I’m not sure if this is exactly the same problem that I was having, but I think this might help? I was seeing the example custom fields only on the Page Editor screen, and not on the Post Editor.

    On line 72 of example-functions.php:

    `
    ‘object_types’ => array( ‘page’, ), // Post type
    `

    I changed ( ‘page’, ) to ‘page’, ( ‘post’ ) and that solved the problem. Probably very obvious to someone more experienced, but as a newcomer, I struggled with it for a while.

Viewing 16 replies (of 16 total)
  • The topic ‘CMB2 and custom post type?’ is closed to new replies.