Having a lot of difficulty getting add_editor_style() to load into source code

You shouldn’t call add_editor_style() directly in your functions.php file. Instead, you should wait until the plugins and themes have been loaded: add_action( ‘after_setup_theme’, ‘add_editor_style’ ); If you already have a function hooked to after_setup_theme, you can call add_editor_style() inside there instead. You then need create a file called editor-style.css and place it in your theme … Read more

Dynamically textarea with TinyMce editor

Add this function to you JavaScript: function textarea_to_tinymce(id){ if ( typeof( tinyMCE ) == “object” && typeof( tinyMCE.execCommand ) == “function” ) { tinyMCE.execCommand(‘mceAddControl’, false, id); } } then when you create the textarea dynamically call it and pass the textarea’s id to it. Just make sure TinyMCE is loaded on that page before or … Read more

Highlight Syntax Inline

If you still want to use SO-type backtick markup for styling your inline code examples, I’ve created some code that will accomplish it. To make it into your own plug-in, just add the code below to your functions.php. It calls the wordpress filter “the_content” to apply the transformation to the content when it is displayed, … Read more

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