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

Conditional HTML

$
0
0

Hi, I’m trying to use conditional HTML in my Custom View to “Show this whatever” only if the custom field I created called wpcf-cj-promo-expiration is less than $expdate. The code I used below works, but I wanted to see how I’d implement another argument using another condition like AND if wpcf-cj-promo-start is greater than $startdate. That way displaying “Show this whatever” between wpcf-cj-promo-start and wpcf-cj-promo-expiration.

This one works with $expdate being less than 100.
[wpv-if expdate="wpcf-cj-promo-expiration" evaluate="$expdate < 100" debug="true" condition="false"]Show this whatever [/wpv-if]
I tried this for startdate being greater than 20 AND exdate being less than 100 and no luck:
[wpv-if startdate =” wpcf-cj-promo-start” expdate="wpcf-cj-promo-expiration" evaluate="$expdate < 100 AND $startdate > 20” debug="true" condition="false"]Show this whatever [/wpv-if]

I’m pretty new at this so any input would help me greatly. Thank you.


Viewing all articles
Browse latest Browse all 20145

Trending Articles