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