How to stop wp-editor() overwriting my HTML?

If you were always writing in HTML, you could add the following to your functions.php file: remove_filter( ‘the_content’, ‘wpautop’ ); remove_filter( ‘the_excerpt’, ‘wpautop’ ); I do this for some of my own sites. As it sounds like you want the option to turn this on or off, you may want to try the wpautop control … Read more

How to make this clean?

Try: $MySITE = ‘This is my site: <a href=”‘ . esc_url(‘http://www.ciusan.com’) . ‘”>Ciusan</a>’; wp_editor($MySITE, ‘CNB_Content’, $settings = array(‘media_buttons’ => false,) );

Adding text above the editor

I ended up just using ACF for this. I created a message field, and then displayed it on post screens below the editor, and on the visual editor widget for the plugin I was using. Not ideal in terms of formatting or placement, but good enough.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)