Title: using parameter passed in url
Last modified: December 15, 2016

---

# using parameter passed in url

 *  [dlmerriam](https://wordpress.org/support/users/dlmerriam/)
 * (@dlmerriam)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/using-parameter-passed-in-url/)
 * It looks like I ought to be able to use a parameter passed in the url, i.e. example.
   com/page?id=”123″ and pass that id on to the display.
 * What I’m trying to do is setup a page that displays, for instance, YouTube videos
   with the YouTube id as a passed parameter. Even better if I can use it as a parameter
   to another shortcode to use a fancy video display plugin like [arve [https://youtube.com/watch?v=%5Bpassed=id%5D%5D](https://youtube.com/watch?v=%5Bpassed=id%5D%5D)
 * I’ve tried all sorts of combinations and while I can get the passed parameter
   to display on the page, I can’t figure out how to actually use it in a url or
   secondary shortcode.
 * Any ideas would be most appreciated.

Viewing 1 replies (of 1 total)

 *  [Peter Berger](https://wordpress.org/support/users/peterpolow/)
 * (@peterpolow)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/using-parameter-passed-in-url/#post-8848129)
 * Hi,
 * Is your issue already solved?
 * If so, please post your solution and mark this topic resolved. If not, this worked
   for me:
 * URL: `http://www.yourdomain.com/test-page/?yt_id=x0VPKGyRXR4`
 *     ```
       [pass global=query fields=yt_id] 
       [if pass='{YT_ID}' empty=false]
       <iframe src="https://www.youtube.com/embed/{YT_ID}" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
       [else] No YT-ID found... [/if] 
       [/pass]
       ```
   
 * Peter
    -  This reply was modified 9 years, 1 month ago by [Peter Berger](https://wordpress.org/support/users/peterpolow/).

Viewing 1 replies (of 1 total)

The topic ‘using parameter passed in url’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Peter Berger](https://wordpress.org/support/users/peterpolow/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/using-parameter-passed-in-url/#post-8848129)
 * Status: not resolved