WordPress | Convert #038; to &

You’re setting the link using PHP-generated JavaScript. I’m sure there are better ways to do this, e.g. just write the onclick handler into the div, or use an <a> tag for a link as usual, but if you want to it this way you should be using esc_js() not esc_url(). <script type=”text/javascript”> document.getElementById(“professionista<?= $query->post->ID ?>”).setAttribute( … Read more

Is there a way to disable formatting shortcuts in 4.3?

Yes, there is very well a way to disable these formatting shortcuts. You can do so by using this simple little piece of PHP code. <?php function disable_mce_wptextpattern( $opt ) { if ( isset( $opt[‘plugins’] ) && $opt[‘plugins’] ) { $opt[‘plugins’] = explode( ‘,’, $opt[‘plugins’] ); $opt[‘plugins’] = array_diff( $opt[‘plugins’] , array( ‘wptextpattern’ ) ); … Read more

Code Blocks with WYSIWYG in blog post

There are several ways to deal with this problem. You could have a look for some syntax highlighter plugin, those will also bring you coloured text with highlighted keywords etc. pp. This is probably nice, if you use code quite often. I use SyntaxHighlighter Evolved. If you want to do this by hand, <code> is … Read more

PHP library that can merge stylesheet with inline style [closed]

I am trying to replicate the same output you have provided in your example above and I am only able to achieve output along the lines of; <p class=MsoNormal> <span class=MsoIntenseReference> <span style=”color:red;text-transform:none;letter-spacing:0pt;font-weight:normal;text-decoration:none”> Red Example text </span> </span> </p> As you can see Microsoft Word (2010) is inserting predefined class names for the paragraph and … Read more

Line breaks not showing up properly

Presentation layer is best handled by CSS. In this case that would probably be margin-bottom rule for your heading. Markup with <br /> is usually unreliable. WP mostly relies on <p></p> tags for paragraphs and not line breaks.

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