Possibly a simpler way to handle this problem is just use the new wp_editor function (introduced in 3.3). The main drawback is described in the function description:
… you cannot put it in meta-boxes that can be dragged and placed elsewhere on the page.
Technically, you can, it’s just not going to play nice if someone’s trying to drag-n-drop it around.
This is the way I do it:
<?php $mb->the_field('example');
wp_editor(
html_entity_decode($metabox->get_the_value()),
$mb->get_the_name(),
$settings = array('textarea_name' => $mb->get_the_name() )
);
?>
The function description lists a bunch of the settings you can change (media buttons, teeny editor, size, what buttons appear, etc).
The function description also says something about ONLY LOWERCASE LETTERS IN THE ID ASLKDF JALKS JQ L!!! L!KJ!L NO REALLY WE MEAN IT.
The function handles (_) underscores and [] brackets fine, just don’t mess with uppercase letters or (-) dashes.
Related Posts:
- Using WPAlchemy metabox values in another metabox
- On update or create post redirect to current post position in list
- using the loop in custom meta is messing up ‘add new’ post type
- How can I remove the “Add New” button in my custom post type?
- Showing User’s Post Counts by Custom Post Type in the Admin’s User List?
- Multiple custom post types under one admin menu
- How can I change the admin search posts fields?
- Custom post type: Add “Edit | Quick Edit | Trash | View” links to date (if title is not shown in column)?
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- How can I filter posts by post_parent in the admin?
- Is it OK to move admin menu items?
- Filter by custom Field for Custom post type Admin Listing
- Using custom field as custom post title
- Renaming Menu Item within Admin Menu Section for a Custom Post Type?
- Categories under custom post types doesn’t show properly
- how to use two permalinks for one custom post type
- Actions that Run on Admin Edit Page Load After Posts Are Queried
- WordPress is executing URL in code when called via wp_mail()
- Filters post in admin with dropdown select, custom post type
- Admin List Dynamic Heading
- Settings page above CPT page in admin section
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Changing ‘view’ link for custom post type on list post screen?
- Add html to cpt main page / admin edit.php
- Using several custom fields as custom post title
- Adding custom tables to WordPress
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- Return the thumbnail meta data for getter and setter
- What’s the difference between same wp functions get_posts(); functions in different form?
- how to check if custom post type column already exists?
- Custom Post-Type not in admin menu
- Page vs Custom Post Types Differences/Issues
- Can I list a custom post type within another custom post type in the admin area?
- I would like to have different styles for my posts based on the content of each post
- Checking if Post Title is Unique as Loop Criteria
- Set URL link to featured image of custom post type
- How do I add a custom screen for a custom post type to be called from custom post row action?
- How to display custom WP menus?
- Admin Column does not populate with data
- TinyMCE style formats for different post types
- P̶l̶a̶c̶e̶h̶o̶l̶d̶e̶r̶ *Default* content in Custom Post Type TinyMCE editor
- Problems wp_insert_post and save_posts filter
- Cant get paginations on single.php to work with my custom post types
- How can I group posts by months and years?
- Trying to Create a PHP Variable for post_type that can be referenced Site Wide
- New “Custom Types” item in admin menu. Is this a plugin or a new wordpress feature?
- Not sure why this template for custom post type posts isn’t displaying anything. What’s missing?
- Saving fields in a drop-down in WordPress
- Plugin or method of allowing user to rearrange custom post types with drag and drop?
- Assigning a category to a custom post type in WordPress
- sortable columns for multiple custom post types not working
- I need to add a filter to prepend the term ‘National – ‘ to the post title if the post is tagged to multiple states
- WordPress: Custom User Role cannot access Custom Post Type | “Sorry, you are not allowed to access this page”
- Query entries from custom post type in an ACF flexible content field
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- Filter posts of custom post type by meta key in (List All Section)
- Template code to split a post and print a custom field?
- Accessing a protected property of a post
- Foreach loop returning more than one item when querying taxonomy
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- Require custom post type if is_admin() – template doesn’t show up?
- Need help with simple “if statement” checks to output particlular CPT data depending on what client uploads/fills out
- WordPress sitemap with Custom Post Types
- How can I sort the order of multiple custom field values in a custom post type?
- Display All Courses in Course Archive Page
- Custom fields array to display it monthly
- How to show the post which checkbox is not selected
- php dynamic content inside shortcode
- I want to rewrite the URL of a specific post with a specific custom field to easily analyze in Google Analytics
- Get all post under custom post type grouped by custom filed value in custom taxonomy
- Check that a slug is present in the get_terms request
- open custom post type in popup window instead of page
- Get category name of custom post type
- pagination problem listing custom post types of taxonomy in wordpress
- In the php, how can I have a category of a custom post type display?
- I’m trying to create an if statement that will only display my button link for tickets if its under ‘admission-event’… what is wrong with my code?
- Taxonomy doesn’t follow slug permalink structure
- Looping to organize and display custom posts by category using PHP and WordPress
- Custom Post By Category
- Display a list of sub-pages of Custom Post Type Parent Page
- test if something is a post or a taxonomy
- CPT: execute code after load if parameter is set
- ACF Post Content Not Being Searched
- Group/list/sort custom post type posts by date in tabs from acf datepicker field
- Getting a 404 on single custom post type page when using rewrite on a custom taxonomy
- How to Fix WordPress 500 Internal server error due to custom post type
- Customising the admin columns for a custom post type, but now most of the built in categories don’t display?
- Exclude Custom Post Type from shared Custom Taxonomy
- How to call Shortcode categories for custom post types?
- Trying to combine multiple WordPress queries
- Stop header code from showing in category page?
- Custom Loop for custom post type. Compare by meta_value?
- Query Custom Post Type by Tag
- How to string lines from the_content() hook in WordPress?
- Get custom post fields and display them
- PHP Button Custom link [closed]
- How to dynamically register custom post type
- How to I add count of custom posts listed in a post as a prefix to its title
- How to set the Screen Options for Users in the Admin Panel?
- How do loop categories post from according in WordPress? is it impossible to solve this problem?