I tried this:
{if "{entry_date format='%U'}" > "{current_time format='%U'}"}foo{/if}
and it throws back an error.
Parse error: syntax error, unexpected T_STRING in /.../core/core.functions.php(637) : eval()‘d code on line 3
————
Ultimately I need to do something more complex like this:
{if "{expiration_date format='%D, %F %d, %Y - %g:%i:%s'}" > "{current_time format='%D, %F %d, %Y - %g:%i:%s'}" AND "{entry_date format='%D, %F %d, %Y - %g:%i:%s'}" < "{current_time format='%D, %F %d, %Y - %g:%i:%s'}"} foo {/if}
But errs. Any ideas? I’m trying to schedule the LG Poll module, but Mr. L.G. didn’t build in a way to “schedule” or make polls appear on their entry date. They just start on the entry date (and indicate so-only) as well as close on their expiration date (and just indicate so).
This poll closed on {expiration_date format="%D, %F %d, %Y - %g:%i:%s"}
He told me that I could create a conditional statement, but I am having a bit of trouble with the logic.
Thanks!