• Resolved mburke79

    (@mburke79)


    Hi,

    Wondering if there is a way to hide an element after a date that is set in a date meta-field in custom post type?

    Ive got a custom post type of events, and I want the “buy tickets” button to disappear after the event date, which is a meta field within the post type.

    Is that possible?

    Thanks
    Mike

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author rtowebsites

    (@rtowebsites)

    Hello @mburke79

    it should work to select “Post Custom Field” as DynamicTag, “greater as” as condition and Date as condition type.

    Thread Starter mburke79

    (@mburke79)

    Hi,

    Thank you for the response. When I put “Date” as the condition type, it forces me to choose a date from a calendar as the Conditional Value. However, I want to set the Conditional Value as “today.”

    In other words, if the date in the Post Custom Field is greater than today, then hide the element.

    Plugin Author rtowebsites

    (@rtowebsites)

    Hello @mburke79

    than you can use String to time as condition type and enter “today”.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Compare to Date Meta Field?’ is closed to new replies.