Created
December 16, 2012 23:43
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$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