How to reset display of WYSIWYG editor

Looks like the Theme you are using adds style to the editor using add_editor_style(). Check for that code in theme files and just comment it out by adding a // so that it looks like //add_editor_style( … );. Alternatively, you can look for a file named editor-style.css in theme’s root directory and rename it to … Read more

Convert this textarea to rich html format via wp_editor

You basically have two options, using PHP or Javascript. With PHP you would use the wp_editor function to output the textarea for you, and with Javascript you would convert the existing textarea with wp.editor.initialize. Note there are slightly different settings available for each approach. PHP wp_editor function in Codex $id = ‘yith_vendor_biografia’; $content = esc_textarea( … Read more

Keep WYSIWYG on Blog Page

Pre WP 4.9 if( ! function_exists( ‘fix_no_editor_on_posts_page’ ) ) { /** * Add the wp-editor back into WordPress after it was removed in 4.2.2. * * @param Object $post * @return void */ function fix_no_editor_on_posts_page( $post ) { if( isset( $post ) && $post->ID != get_option(‘page_for_posts’) ) { return; } remove_action( ‘edit_form_after_title’, ‘_wp_posts_page_notice’ ); add_post_type_support( … Read more

Dynamically adding WYSIWYG to metaboxes

I am not sure if this is what you want: (Source: https://stackoverflow.com/questions/3493313/how-to-add-wysiwyg-editor-in-wordpress-meta-box) add_action( ‘add_meta_boxes’, ‘adding_new_metaabox’ ); function adding_new_metaabox() { add_meta_box(‘html_myid_61_section’, ‘TITLEE Helloo’, ‘my_output_function’); } function my_output_function( $post ) { //so, dont ned to use esc_attr in front of get_post_meta $valueeee2= get_post_meta($_GET[‘post’], ‘SMTH_METANAME_VALUE’ , true ) ; wp_editor( htmlspecialchars_decode($valueeee2), ‘mettaabox_ID_stylee’, $settings = array(‘textarea_name’=>’MyInputNAME’) ); } function … Read more

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