Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7983663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:01:40+00:00 2026-06-04T11:01:40+00:00

Good to hear that Sony (wordpress3.3) has the new editor api wp_editor() that gives

  • 0

Good to hear that Sony (wordpress3.3) has the new editor api wp_editor() that gives us the ability to use multiple instances of the editor in our custom fields with ease.

But I needed to to customize the default editor (for the main content) and couldn’t figure out how to do it with this function.
I needed to customize the editor for the my new custom post type called baner for which i needed to change the size of the editor with fewer buttons. I know i could do it by simply using a custom field instead but for some reason i want to use the content for the description of the banner.

Thank You in Advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T11:01:45+00:00Added an answer on June 4, 2026 at 11:01 am

    I was looking for a solution to place custom metabox above the default editor and i’ve found the solution to my old question (how to customize the default editor with the wp_editor)!

    The solution was to unset the default editor first. Then create another metabox to to place the content then use wp_editor to create new its new instance, simple isn’t it?

    add_action( 'add_meta_boxes', 'page_meta_boxes' );
    public function page_meta_boxes()
    {
    
        global $_wp_post_type_features;
                //ive defined my other metaboxes first with higher priority
        add_meta_box(
            $id     =   'page_heading_meta_box',
            $title  =   __('Heading'),
            $callback   = array(&$this,'render_page_heading_metabox'),
            $post_type  =   'page',
            $context    =   'normal',
            $priority   =   'core'
            );
        add_meta_box(
            $id     =   'page_description_meta_box',
            $title  =   __('Description'),
            $callback   = array(&$this,'render_page_description_metabox'),
            $post_type  =   'page',
            $context    =   'normal',
            $priority   =   'core'
            );
        //check for the required post type page or post or <custom post type(here article)  
        if (isset($_wp_post_type_features['article']['editor']) && $_wp_post_type_features['post']['editor']) {
            unset($_wp_post_type_features['article']['editor']);
            add_meta_box(
                'wsp_content',
                __('Content'),
                array(&$this,'content_editor_meta_box'),
                'article', 'normal', 'core'
            );
        }
        if (isset($_wp_post_type_features['page']['editor']) && $_wp_post_type_features['page']['editor']) {
            unset($_wp_post_type_features['page']['editor']);
            add_meta_box(
                'wsp_content',
                __('Content'),
                array(&$this,'content_editor_meta_box'),
                'page', 'normal', 'low'
            );
        }
        }
    

    In this way we have registered a new metabox called content . Now time to place the editor

            function content_editor_meta_box($post)
        {
            $settings = array(
                #media_buttons
                #(boolean) (optional) Whether to display media insert/upload buttons
                #Default: true
                'media_buttons' => true,
    
                #textarea_name
                #(string) (optional) The name assigned to the generated textarea and passed parameter when the form is submitted. (may include [] to pass data as array)
                #Default: $editor_id
                'textarea_name'=>'content',
    
                #textarea_rows
                #(integer) (optional) The number of rows to display for the textarea
                #Default: get_option('default_post_edit_rows', 10)
    
                #tabindex
                #(integer) (optional) The tabindex value used for the form field
                #Default: None
                'tabindex' => '4'
    
                #editor_css
                #(string) (optional) Additional CSS styling applied for both visual and HTML editors buttons, needs to #include <style> tags, can use "scoped"
                #Default: None
    
                #editor_class
                #(string) (optional) Any extra CSS Classes to append to the Editor textarea
                #Default:
    
                #teeny
                #(boolean) (optional) Whether to output the minimal editor configuration used in PressThis
                #Default: false
    
                #dfw
                #(boolean) (optional) Whether to replace the default fullscreen editor with DFW (needs specific DOM elements #and css)
                #Default: false
    
                #tinymce
                #(array) (optional) Load TinyMCE, can be used to pass settings directly to TinyMCE using an array()
                #Default: true
    
                #quicktags
                #(array) (optional) Load Quicktags, can be used to pass settings directly to Quicktags using an array()
                #Default: true
            );
            wp_editor($post->post_content,'content');
    
        }
    

    Now you can fully customize your editor! This is how it looks now. Hope it is useful for you too!
    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I hear Python is very good for pentesting. It has got good modules for
From time to time you hear stories that are meant to illustrate how good
I am starting out a new project that involves the use of JSF 2.0.
I occasionally hear things about how SQL sucks and it's not a good language,
We will soon start replacing ClearCase with Mercurial. I hear this is a good
Good evening, In my app that I'm currently developing, I have a class that
Is it a good way to use JQuery UI themes while implementing a high
I hear that tr1::result_of gets used frequently inside of Boost... I'm wondering if there
I am writing some signal processing code in C that has a communications channel.
I always hear that reading a CAPTCHA is impossible and so now I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.