• I am trying to run a new javascript with this line: document.getElementById(“phpcode”).innerHTML=”<?php echo ‘123456789’;?>”;}

    I saved the script with wp_head option and it exports in the browser hidden <!–?php echo ‘123456789’;?–>, instead of visually 123456789.

    how I can run the PHP code under Javascript?

    https://www.ads-software.com/plugins/custom-css-js-php/

  • The topic ‘php code doesn't work in javascript’ is closed to new replies.