• I’m trying to make a page work as a general video display using a URL parameter with pass global=query

    [pass global=query fields=vid]
    [if check='{VID}’]
    [s3vpp id='{VID}’]
    [else]
    The parameter vid is empty
    [/if]
    [/pass]

    It recognizes that the parameter is there, but it’s not getting to the shortcode. Is there any way to do this?

    https://wordpress.org/plugins/custom-content-shortcode/

Viewing 1 replies (of 1 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Could you see if the following shows the value passed?

    [pass global=query fields=vid]
    [if check='{VID}' empty=false]
    Passed value: {VID} <----
    [s3vpp id='{VID}']
    [else]
    The parameter vid is empty
    [/if]
    [/pass]

    If that displays the value, that means it should be passed to the video shortcode. Are you certain the ID is correct?

    For the [if] condition, I would put empty=false to catch when the check parameter is empty.

Viewing 1 replies (of 1 total)

The topic ‘Nested shortcode’ is closed to new replies.