Inline Editing with wp_editor and tinymce (problem with textarea)

I am still experiencing with this, but here is how I got rid of the unwanted text area: if ( !is_admin() ) { //you might decide to change this conditional statement. //I found the filter in /wp-includes/class-wp-editor.php @249 add_filter(‘the_editor’, ‘my_remove_editor_te’); function my_remove_editor_te(){ $editor=””; return $editor; // or simply return; } } Here is how I … Read more

Is it better practice to create many page templates, or a a few base templates with custom HTML added via TinyMCE?

I use multiple templates, but also use code for some pages. For example, if I have a site with 3 sections, About, Products, and Research I would create page-about.php, page-products.php and page-research.php. These can be customized as necessary though usually they are simply pulling in unique sidebars which I want to include on all pages … Read more

TinyMCE HTML Encode Backslash

ok so finally found a solution to this. i had to edit class-wp-editor.php and include the following for the $first_init array ‘setup’ => ‘function(ed) { ed.onGetContent.add(function(ed, o) { // Replaces all a characters with b characters o.content = o.content.replace(/\\\\/g, “\”); }); }’,

Output html source tags inside shortcode

Try the following code: function caption_shortcode( $atts, $content = null ) { $content = do_shortcode($content); return ‘<span itemprop=”articleSection”>’. str_replace( array( ‘<‘, ‘>’ ), array( ‘&lt;’, ‘&gt;’ ), $content ) .'</span>’; } add_shortcode( ‘source’, ‘caption_shortcode’ ); remove_filter( ‘the_content’, ‘wpautop’ ); remove_filter( ‘the_excerpt’, ‘wpautop’ );

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