php - Show only if currentTime > scheduleEnd using gravity forms -


i want show shortcode if current time before closetime.

i using conditional in page.php not working:

$closetime = strtotime($form['scheduleend'] . " " .         $form['scheduleendhour'] . ":" . $form['scheduleendminute'] . " " . $form['scheduleendampm']);             $currenttime = strtotime(date('m/d/y h:i a'));             if ($currenttime > $closetime) {                 echo do_shortcode('[stickylist id="'.get_field( 'id_form' ).'" showto="creator"]');              }    

i think because not adding form anywhere in main function not sure how can work.

thank you!


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -