Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

wpv-if to test for existence of querystring

$
0
0

Hi, using this post (http://wp-types.com/forums/topic/how-can-my-view-access-a-url-parameter-in-a-query-string/) as a guide, I sucessfuly have a way to print out query strings in my view, but I want to use wpv-if to do something only if that string exists, and I can't figure it out. Here is what I have tried in my code:

First I tried:

[wpv-if circ="circuit" evaluate="!empty($circ)"]<div id="circuit"> [wpv-post-param var='circuit']</div>[/wpv-if]

Then I tried:

[wpv-if circ="[wpv-post-param var='circuit']" evaluate="!empty($circ)"]<div id="circuit"> [wpv-post-param var='circuit']</div>[/wpv-if]

Without the if statement, this prints fine, but I only want it to print something if it finds the query, and not print my divs if it is not there.


Viewing all articles
Browse latest Browse all 20145

Trending Articles