• Resolved Rubenzella

    (@rubenzella)


    Hello rtowebsites,
    I’ve been using your plugin for while and I love it, powerful and useful.
    Wondering if you could enlighten me with my issue.

    I have a series of widgets and these have to be shown, for instance, one every week. So if I have 4 widgets, one by one each week, eventually at the end of the month they all are visible.

    The Dynamic Tag is an ACF date field.

    Are there solutions available with your plugin?

    Thanks in advance for your time!

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

    (@rtowebsites)

    Hello,

    you can use Date as Compare-Type and check if current date is greater or smaller than.

    Thread Starter Rubenzella

    (@rubenzella)

    Hi, thanks for answering.
    I admit I haven’t really explained precisely that the widgets have to be shown starting from the date given on an ACF, in this way the condition is set dynamically without the need to adjust manually.

    One way I see to reach my intent is to make a math subtraction of the dates and compare the result to my condition.
    The first date should be pulled from an ACF while the second should be “now”, and if the result is >= 2 days, then show content.

    I hope the example helped to clarify the logic.

    Plugin Author rtowebsites

    (@rtowebsites)

    Hello,

    you could use String-To-Time as compare-type and enter
    “today -2 days”

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show widget “days” before ACF Date’ is closed to new replies.