• Resolved przecinek

    (@przecinek)


    hi!
    I’ve found your plugin while searching for a script that could display a “counter from”-timer at my website. I want to make something like “X days, Y hours, Z minutes since the last BLAH BLAH”.
    so I tried to add few shortcodes – eachone counting with different format, but that obviously didn’t worked. I also tried some custom formatting but with no luck.

    I guess, that it is not possible with your plugin, am I right?
    is it possible that you’d add an option/argument something like “group” so the counters could respect each others?
    meaning:

    [DateCounter startDate="2020-10-02 13:15" endDate="now" format="Days" group="my-test21]
    [DateCounter startDate="2020-10-02 13:15" endDate="now" format="Hours" group="my-test21"]
    [DateCounter startDate="2020-10-02 13:15" endDate="now" format="Minutes" group="my-test21"]
    [DateCounter startDate="2020-10-02 13:15" endDate="now" format="Seconds" group="my-test21"]

    and that would group them all to show correct values, something like in “regular” count-down timers. I guess that adding a new format could do the job, but grouping would give more possibilities [different combinations – days and hours only, minutes and seconds only etc.].

    cheers!

    edit: of course “my-test21” is just a random name that can be anything suitable for the moment, entered by user ??

    • This topic was modified 4 years, 5 months ago by przecinek.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Konstantin Pankratov

    (@pankratovkm)

    Hi!

    It is possible using the custom output format, try following examples:

    [DateCounter startDate="2020-10-02 13:15" endDate="now" format="%a days, %h:%i:%s"]
    [DateCounter startDate="2020-10-02 13:15" endDate="now" format="%a days, %h days %i hours %s seconds"]

    Hope it helps!

    Thread Starter przecinek

    (@przecinek)

    Hi @pankratovkm

    thank you for your hint! that worked flawlessly ??

    cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is there a combined counter option?’ is closed to new replies.