How to display meta box with multiple wysiwyg editors
-
I have the following code in my functions.php file which I generated through Meta Box online…
function ithub_get_meta_box( $meta_boxes ) { $prefix = 'ithub-'; $meta_boxes[] = array( 'id' => 'ithub_tabs', 'title' => esc_html__( 'IT HUB Tabs', 'metabox-online-generator' ), 'post_types' => array( 'page' ), 'context' => 'normal', 'priority' => 'default', 'autosave' => true, 'fields' => array( array( 'id' => $prefix . 'ithub_metabox_devprojects', 'name' => esc_html__( 'IT Development Projects', 'metabox-online-generator' ), 'type' => 'wysiwyg', ), array( 'id' => $prefix . 'ithub_metabox_enhancements', 'name' => esc_html__( 'IT Enhancements', 'metabox-online-generator' ), 'type' => 'wysiwyg', ), array( 'id' => $prefix . 'ithub_metabox_breakfix', 'name' => esc_html__( 'IT Break Fixes', 'metabox-online-generator' ), 'type' => 'wysiwyg', ), ), ); return $meta_boxes; } add_filter( 'rwmb_meta_boxes', 'ithub_get_meta_box' );
What do I need to place on my custom template page, to show all three content sections? I have spent an hour trying to use examples based on the following page. No luck. I’m running WordPress 4.9.5
Thanks!
- The topic ‘How to display meta box with multiple wysiwyg editors’ is closed to new replies.