Skip to content

Instantly share code, notes, and snippets.

@bicyclista
Created February 14, 2012 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bicyclista/1830029 to your computer and use it in GitHub Desktop.
Save bicyclista/1830029 to your computer and use it in GitHub Desktop.
wpalchemy metaboxes VS. wordpress wp_editor()
<p>
<?php $mb->the_field('citation');
//array of settings for wp_editor()
$settings = array(
'wpautop' => true,
'textarea_rows' => '15',
'media_buttons' => 'false',
'tinymce' => true,
'quicktags' => true
);
$val = $mb->get_the_value();
$id = $mb->get_the_name();
wp_editor($val, $id , $settings );
?>
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment