- This topic has 41 replies, 8 voices, and was last updated 6 days, 7 hours ago by .
-
Topic
-
I’ve registered a WYSIWYG metabox on a page post type but the visual editor isn’t working. If I swap to the “text” tab, I can type in there and the details are saved, but nothing is shown in the visual editor section.
Here is the code I’m using to register the metaboxes.
$meta_boxes[] = array( 'title' => 'Pedestal Details', 'id'=>'pedestal_details', 'post_types' => 'page', 'fields' => array( array( 'name'=>'Select Image Map', 'id'=>'image_map', 'type'=>'select', 'options'=>array( 'test'=> 'Test' ) ), array( 'name'=>'Hotspot Details', 'id'=>'hotspots', 'type'=>'group', 'clone'=>true, 'sort_clone'=>true, 'add_button'=>'Add a Hotspot', 'fields'=>array( array( 'name'=>'Hotspot Title', 'id'=>'hotspot_title', 'type'=>'text' ), array( 'name'=>'Hotspot Content', 'id'=>'hotspot_content', 'type'=>'wysiwyg' ), array( 'name'=>'Hotspot Image', 'id'=>'hotspot_image', 'type'=>'image_advanced', 'multiple'=>false ), array( 'name'=>'Hotspot Products', 'id'=>'hotspot_products', 'type'=>'post', 'post_type'=>'product', 'clone' => true, 'add_button'=>'Add a product' ) ) ), array( 'name'=>'Select a download', 'id'=>'pedestal_downloads', 'type'=>'post', 'post_type'=>'download', 'clone' => true ) ) );
What have I missed?
- You must be logged in to reply to this topic.