Title: insert URL variable into
Last modified: August 31, 2016

---

# insert URL variable into

 *  [cocococo](https://wordpress.org/support/users/cocococo/)
 * (@cocococo)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/insert-url-variable-into/)
 * Hi, I am attempting something simple, to insert the variable “book” into a <Script
   > statement
 * For example, my caller URL is below
 * [http://www.early-reading.com/word-puzzle-sample-2-2/?book=book01](http://www.early-reading.com/word-puzzle-sample-2-2/?book=book01)
 * On that page is a script
 * `<script src="http://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.

 * 0 replies
 * 1 participant
 * Last reply from: [cocococo](https://wordpress.org/support/users/cocococo/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/insert-url-variable-into/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
