Why Editor reformats my code

I suggest you to use htmlspecialchars() before sending content andhtmlspecialchars_decode() before showing content on page, here is functions that you need to copy/paste to your functions.php : function wp_po9568($content) { return htmlspecialchars($content); } add_filter(‘content_save_pre’,’wp_po9568′); And: function wp_po5689($content) { return htmlspecialchars_decode($content); } add_filter( ‘the_content’,’wp_po5689′); WordPress by default comments out php tags.

Example for use tinymce in wordpress 3.5.1?

Use wp_editor(). There are many configuration options; you have to read the source to get all of them. Example: $editor_settings = array ( ‘textarea_rows’ => 15, ‘media_buttons’ => FALSE, ‘teeny’ => TRUE, ‘tinymce’ => TRUE, ‘dfw’ => FALSE, ); $content = $get_option( ‘your_option_name’ ); wp_editor( $content, ‘your_editor_id’, $editor_settings );

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