• Hi, I am attempting something simple, to insert the variable “book” into a <Script> statement

    For example, my caller URL is below

    https://www.early-reading.com/word-puzzle-sample-2-2/?book=book01

    On that page is a script

    <script src="https://www.early-reading.com/wp-content/uploads/cbooks/puzzles/#book#.js">

    If I hardwire the #book# variable in the script as “book01” the page works

    I have tried a plugin “[display-get-param] and it display the correct info outside the script, but inside the script, the plugin has no affect.

    What other alternative is there? Note that this plugin previously worked – are there new rules about variables in scripts

    Thanks

  • The topic ‘insert URL variable into’ is closed to new replies.