• 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

    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

    (@peterpolow)

    Hi,

    Is your issue already solved?

    If so, please post your solution and mark this topic resolved. If not, this worked for me:

    URL: https://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

Viewing 1 replies (of 1 total)
  • The topic ‘using parameter passed in url’ is closed to new replies.