Solved it!
Hope somebody else can use it or it answers their problem. If there is a better way please share and tell why.
$editor_id = 'custom_editor_box';
$uploaded_csv = get_post_meta( $post->ID, 'custom_editor_box', true);
wp_editor( $uploaded_csv, $editor_id );
To save the data:
function save_wp_editor_fields(){
global $post;
update_post_meta($post->ID, 'custom_editor_box', $_POST['custom_editor_box']);
}
add_action( 'save_post', 'save_wp_editor_fields' );
And that’s all there is to it!
Related Posts:
- Why have on every line
- Cleaning up WordPress to improve performance?
- Include a external PHP file into a WordPress Custom Template
- List of all theme customizer control types?
- Show the most popular post per week
- Add a class to links in the visual editor (how to get old dialog back)
- Remove option to allow trackbacks/pingbacks from post page options
- How to remove hardcoded characters from playlists?
- Creating custom Woocommerce attribute taxonomies from a plugin
- Hide old attachments from wp media library
- Admin Bar (Toolbar) not showing on custom PHP file that loads WordPress
- Custom post type column which compares dates?
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- Limit the Excerpt field in WP-Admin in words
- Search and Replace in database: How to replace data in SQL dump file on Windows?
- delete an array element when its date expires
- Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin – Adding to “Thoughts” Theme
- Is it recommended to pass some data to scripts in `wp_enqueue_scripts`?
- Wrap First Character after in a tag
- How do I implement a .diff changeset from core.trac.wordpress.org locally?
- Random Default Avatar Function
- Change the site tagline (or similar) based on current page
- Customizer: Output default value in Customizer CSS
- create a select input with menus created on a custom options page
- Taxonomy linked to pages
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- Converting HTML Template to WordPress Theme
- Can I install/embed WordPress on a ‘single page’?
- How to pick the default selected value in wordpress dropdown?
- WordPress admin pointers tour bug?
- Customize position of social icons in upme plugin [closed]
- Using $wpdb (WPDB class) ‘replace’ with multiple WHERE criteria problem
- Media Upload , file name changed automatically
- Replace shortcode in substring
- Custom posts in different columns style
- How do I add a custom css to all posts without affecting homepage css? [closed]
- Advanced Custom Fields not displaying
- What exactly do this function declared into functions.php file of a WP theme?
- Exclude posts with specific metadata from search?
- Add data-id attribute to child page links
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- Warning: Illegal string offset on theme options page [closed]
- customize wordpress database error page
- Display Youtube Time Automate from Key
- How to fix this PHP warning in WP-Admin after upgrading to 3.1.2?
- Where is the PHP code generating an element?
- Basic wpdb update question
- Check class_exists before class definition / Doxygen problem
- Ajax search shows all results when user empties input?
- Extract links from content
- List post by title length
- WordPress widget and customize.php not working in Ubuntu16.04 VPS
- Custom Registration username_exists / email_exists
- Need help with pagination
- How do i wrap woocomerce attribute in list?
- Is it possible to add a custom page to a free WordPress site? [closed]
- Is there a hack for using is_page() within the function.php file?
- save metabox with new values _wp_page_template
- How to Fix an Archive.php That Displays All Posts?
- pagination broken – clicking next displays “page not found”
- Editor capabilities – admin_init
- WP insert post Redirect after function has executed
- Create condition for Author bio Social Links
- WP-Bakery – Add custom colors to buttons with template colors
- How can I add diffrent editable text fields?
- Woocommerce template file outputting tags
- Featured image in menu wordpres
- Trying to update Woocommerce meta values
- If Statement is Ignored?
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- How can I update the price when someone enters postcode or zip code in woocommerce checkout page?
- Create “blank” admin page without having admin-bar/admin-menu for faster load
- Need help transforming echo to return for use with shortcode
- Noob question: want to remove the “site identity” logo for specific part of website only
- Create Schema in WordPress with PHP
- Redirect after login depending on the URL
- Create form which redirects to site in network?
- Search only for posts with specific metadata?
- Real time notification on user profile after new comment
- How to add text before posts
- Add two or multiple functions in WordPress Post or Page
- How to associate dynamic PHP page for chosen WordPress tag?
- Only display notification on single post
- Is there a way to have chunks of a page’s content expire?
- Showing the project type in HREF
- WordPress error on my website
- Best way to define a database with product codes and back-end support?
- wp_customize_image_control default value
- Pagination on Custom Loop
- Widget header unique classes
- why is this content-template not showing any of my blog-entries?
- How to get the count for each taxonomy term
- How to add button to top of theme customizer?
- MySQL Engine vs. Charset
- How can I add more code to this?
- Save Option on Database
- Edit the Publish Widget Options
- Select area and checkbox data is not saving?
- In reading settings posts are set to “blog” and I have page-blog.php but no posts
- New to WordPress & Freelancing [closed]