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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -