• mechx1

    (@mechx1)


    I am bringing in two passed parameters from the URL. If either of them does not exist, I want to display some content. The following checks brandID only, I want to check lang also in the same if statement (logical OR) so I don’t have to have the same content twice on the page.

    [raw]
    [pass global="_GET" fields="brandID,lang"]
    
    [if not pass="{BRANDID}"]
    <p>Brandid is empty, display default content</p>
    [/if]
    
    [/pass]
    [/raw]

    I do really like this plugin so far, your suggestions very much appreciated.

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

The topic ‘Logical OR on two passed parameters’ is closed to new replies.