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

Reply To: Compare date field to current date

$
0
0

Hi Craig,

When you define a variable for wpv-if, you MUST include the full name of the field as it's stored in the database. Types prefixes all fields with wpcf-. So, you'll need to modify your code to:

[wpv-if expired="wpcf-affiliation-expires" evaluate="$expired < TODAY()"]Expired[/wpv-if]

Viewing all articles
Browse latest Browse all 20145