Support

Account

Home Forums General Issues Show Offer for a particular time Reply To: Show Offer for a particular time

  • 
    $offer_date = get_field('offer_date');
    // not that this assumes specific date formatting
    // the value returned from above would need to have matching formatting
    $today = date('Y-m-d');
    if ($offer_date < $today) {
      // code to show offer here
    }