Prevent WordPress from messing my HTML

I assume you are using the text editor… The example with the blank line in your question would normally be converted by WP to this: <ol> <li>Paragraph 1 : text <p> Some more text</p></li> <li>…</li> </ol> Wpautop wraps the 2nd line with the p element because of the blank line you created. Your example of … Read more

Creating table layout in WYSIWYG editor

Why you are not using table? Spaces are ridiculus. On WYSIWYG editor select table with 2 columns and 3 rows, align items in left column to left, and in right to center and everything should work fine. EDIT. Ok, I see where is the problem. TinyMCE (WYSIWYG editor) has table option, but by default it … Read more

How to disable YouTube (and any other oembed) embeding in the editor

The quick way to disable oEmbeds would be add_filter( ‘pre_oembed_result’, ‘__return_false’ ); If you want to disable it for all external links then try: /** * Disable oEmbeds for external links */ add_filter( ‘pre_oembed_result’, function( $result, $url, $args ) { if( parse_url( home_url(), PHP_URL_HOST ) !== parse_url( $url, PHP_URL_HOST ) ) $result = false; return … Read more

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