Support

Account

Home Forums General Issues PHP ACF Template in Javascript? Reply To: PHP ACF Template in Javascript?

  • Hi @kylerlawrence

    I think that should work but I’ve noticed you have a . right between <?php and get_field.. remove that!

    You’re also not closing your JS properly..
    Try this

    
    var fStartPage = "STATZONE_MATCH:<?php echo get_field('fixtures_live_id'); ?>";