Home Forums General Issues show offer by date


show offer by date

  • Good evening
    i’m using acf with custom post type
    I made section “hotel” and “offer” with custom post type
    With acf, in offer section i add 2 fields “valida_da” and “valida_fino”

    I use this 2 fields for set date of begin (valida_da) and date of expire (valida_fino) for each offer

    Now i need to show only the offer where current data is before of valida_fino

    For example, today is 21/02/2020
    if i have 1 offer from 01/02/2020 to 15/02/2020 i don’t want show it because is expired
    if i have 1 offer from 21/02/2020 to 01/04/2020 i want to show it because current date is before expired data

    With advanced custom fields how i can “filter” this offer?
    I hope you undestand what i need
    Thank you for your help

Viewing 1 post (of 1 total)

The topic ‘show offer by date’ is closed to new replies.