Skip to content

Instantly share code, notes, and snippets.

@ccschmitz
Created December 16, 2012 23:43
Show Gist options
  • Save ccschmitz/4314278 to your computer and use it in GitHub Desktop.
Save ccschmitz/4314278 to your computer and use it in GitHub Desktop.
An example of how to use wp_editor() on a custom WPAlchemy metabox.
<?
$mb->the_field( 'field_name' );
$content = apply_filters( 'meta_content', html_entity_decode( $mb->get_the_value() ) );
$id = $mb->get_the_name();
$settings = array(
'textarea_rows' => 3
);
wp_editor( $content, $id, $settings );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment