date compare not working

By: Ricci Fothergill | Asked: 04/16/2025
ForumsCategory: Code Helpdate compare not working
Ricci Fothergill asked 4 days ago

[524] is todays date..

 

This line works:

[if 524 greater_than_or_equal_to="16-04-2025"]Permit valid[/if 524]

 

This does not:

[if 524 greater_than_or_equal_to="[date format="d-m-Y"]"]Permit valid[/if 524]

 

How do I compare 524 with todays date, without having to manually enter the date?

 

Thanks!

1 Answers
Rob LeVineRob LeVine Staff answered 4 days ago

I'm pretty sure you can't nest shortcodes in this case. You'll need to use frm-condition and create a shortcode that returns today's date. Start here.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right