The second parameter to wp_editor is the value that the “id” attribute of the textarea element will have, and that is probably why there are such restrictions on it. By default it is also used for the “name” attribute but you can set it explicitly by using the $settings parameter to wp_editor
wp_editor($ID, 'media_desc_n',array('textarea_name' => 'media_desc[n]'));
Related Posts:
- Hide “Add media”, HTML editor from TinyMCE
- Numbering sections and block-level elements in wpautop(); WordPress as CMS for long-form writing;
- Remove tinyMCE from admin and replace with textarea
- Using multiple instances of wp_editor in Custom Post Type admin area
- Excluding post type from WordPress link builder
- Add TinyMCE to CPT metaboxes in 3.1?
- Visual editor issue by having multiple tiny mce editors in a CPT
- Show image gallery from a custom field
- How to use TinyMCE Editor for one of my custom post meta field?
- 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
- How can I set the height of the classic editor per post-type?
- Custom post type editor uses old tinyMCE
- Adding custom post formatting options in custom post types
- How to save TinyMCE fields on WordPress custom post type?
- Multiple Block Quotes without using HTML
- Issue displaying multiple TinyMCE editors with WPAlchemy
- Adding a menu item for a Custom Post Archive
- Make custom column sortable
- Why are posts from custom post type not displayed in “category” archive?
- Slug Formatting : Acceptable Characters?
- Duplicating custom post type and its posts
- How to handle a hierarchy with custom post types
- Custom Comment Types
- Not Able to Insert Taxonomy Term Using wp_insert_post()
- WordPress “Loop” with large set of results
- How to show a tag archive of one post type only
- Use Custom Post Type as Custom Field
- WP_Query on custom post type not displaying, multiple loops & get_template_part
- Custom Search | Wrong output & question
- Interesting Custom Post Type Slug with Taxonomy and Custom Field
- Custom edit post column – category not showing
- Change upload_dir folder at a certain cpt but cant change back
- Custom Post Type post ordering not working
- Add specifications table for products page
- Custom Taxonomy Not Showing Up on Post Page
- Pagination links not showing on custom post type admin list
- Custom permalink – append taxonomy name and term name at the end of permalink
- Custom Role for CPT Only
- Pull in custom content types into page template
- Get custom posts with certain ids in a custom loop using a shortcode
- Assigning the same custom meta box to multiple post types
- Custom Post Status Transition Issues With Get Post Meta
- Custom Post Type Draft Preview Goes to 404
- will post_id ever change? Can I safely use post_id for custom queries?
- How to set individual capability of post type in individual category
- wp_get_archives() not working for my custom post type
- Using advanced custom fields from one custom post type in another custom post type / using nested shortcodes
- Custom post URL 404 error
- Add Custom Post Type as top level menu item for a custom page
- Remove Post Custom Meta Box
- How do I set a custom page template for a custom post type?
- Limit the Title Length on Custom Post Type Archive Page to a Set Number of Characters
- Custom Post Type Category On Admin
- Move content between custom post types
- Pods CMS: How to add custom column to Adnvanced Content Type
- Custom post type, custom taxonomy, query posts only from taxonomy (children of)
- How check if a post is saved from backend or frontend?
- Exclude Custom post type from /blog page
- Creating a “glossary” of WordPress posts of a specific post type
- Create a WP_Query where if the first value of the first row is equal to the second compare other value
- How to filter url on post submission?
- Custom Plugin – Query CPT – Display Results
- Using Custom Post Meta Values in Shortcode
- Single Parent post having children’s posts
- How to change the comments form title based on post type
- Control over custom post types on a specific page
- How to display the post using a shortcode in WordPress?
- How do you create pillar content pages?
- How to create an IF statement in the Main Loop for Custom Post Types
- dynamic vue widget inside custom post
- Get meta values from parent post and save in child post
- Cache the registration of a custom post type?
- How to override post-new.php with custom template
- Pagination in wp-admin for CPT
- Custom post type suddenly vanished from admin
- Add pagination to custom page
- Facing some Issues on Two Parts Custom Post Type Taxonomy Names
- Display subcategories in the filter on CPT
- how to use two permalinks for one custom post type based on categories
- Complex strcuture as CPT or taxonomy for use in woocommerce product variations [closed]
- WP_Query for CPT with filter by another WP_Query
- Custom Rewrite Tag Structure
- Custom post type archive pagination with HTML5Blank theme?
- Re-using single CPT code with get_template_part?
- WP_Query and two custom fields returns no posts
- Custom post type Featured Image popup not working
- Parent cpt/child custom post type URL permalink relationship
- Ordering custom post type by custom field without a title
- Function that get ACF fields value before saving
- Reading csv from specific directory and insert it to custom post type (cron job)
- Problems with a custom meta_box
- create gallery page for specific post id
- Show custom posts with a specific “custom TAXONOMY slug” on startpage
- Plugin – read post into blank page [duplicate]
- How to make a single Menu Item call another Mega Menu for Custom Post Types and Custom Taxonomies?
- Default WordPress Query for a Specific Custom Post Type URL
- using jetbooking for multiple custom post types
- Custom post type pagination conflict result in 404
- Trying to add CPT to menu automatically