Add custom fields

BA Book Everything uses CMB2 plugin to create metaboxes with custom fields. So you can follow CMB2 documentation to easily create own metaboxes and custom fields. You can also use one of the plugin hooks to add new custom field to an existing metabox, as shown below. Then you can use function get_post_meta($post_id, ‘new_field_slug’, 1) … Continue reading Add custom fields