WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to include wp_editor in a settings page.

public function addEditor($content = '')
    $editor_id = 'createposteditor';

    $args = array(
        'textarea_rows' => 15,
        'teeny' => true,
        'quicktags' => false,
        'editor_class' => 'createpost-editor'

    return wp_editor( $content, $editor_id, $args  );

and then I echo it out on the settings page:

    <td align="left" scope="row">                                                                 

        <h1>Add content (optional)</h1>
        '. $poster->addEditor() .'                                           

My issue is, the editor always gets rendered at the top of the page, not from within the <td> as I require.

share|improve this question
From the source it is absolutely clearly stated that this method renders the editor. You need to call it exactly where you want it. But to see your real problem you need to show the surroundings as well. – kaiser Aug 19 '13 at 13:43
Yes, post the surrounding code. Something is wrong with the code you have. It is pasted as HTML but is almost certainly a PHP string. – s_ha_dum Aug 19 '13 at 13:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.