TinyMCE buttons broken

Solved: It appears chrome had a corrupt cache as I attempted to visit the backend on Firefox and noticed that the issue wasn’t there. I had to delete all Chrome browsing data (cache alone wouldn’t do it).

Make videos output as iframes not links

Copy paste from my answer here but with iframe/video mime type added: Alter image output in content function WPSE_80145_Mime($html, $id) { //fetching attachment by post $id $attachment = get_post($id); $mime_type = $attachment->post_mime_type; //get an valid array of video types, add any extra ones you need $image_exts = array( ‘video/mpeg’, ‘video/mp4’, ‘video/quicktime’ ); //checking the above … Read more

Multiple TinyMCEs breaking Distraction Free Writing

Don’t use meta boxes for TinyMCE. It has some kind of conflict with the DOM. Hook your code including wp_editor to edit_page_form action instead: add_action( ‘edit_page_form’, ‘my_second_editor’ ); function my_second_editor() { // get and set $content somehow… wp_editor( $content, ‘mysecondeditor’ ); } See Notes on wp_editor in the Codex.

Multiple Block Quotes without using HTML

you can create shortcode for that 1.make a shortcode unsing add_shortcode(functions.php) add_shortcode(‘bquote’,’ravs_blockquotes_func’) function ravs_blockquotes_func( $atts, $content=”” ) { extract( shortcode_atts( array( ‘style’ => ‘style1’ ), $atts ) ); return ‘<blockquote class=”‘.$style.'”>’.$content.'</blockquote>’ } 2.now just simply define quote in shortcode(post or page editer) [bquote style=”style2″]your quote[/bquote] it’s output in html like <blockquote class=”style2″>your quote</blockquote> 3.create as … Read more