WordPress.org

Ready to get started?Download WordPress

Forums

T(-) Countdown
[resolved] just display the date (5 posts)

  1. lexyview
    Member
    Posted 1 year ago #

    I want to display the date beside the countdown on multiple places in my template. Where can I get the date? Is there a Shortcode or do I need to access the database?

    Danke schonmal,
    Robert

    http://wordpress.org/extend/plugins/jquery-t-countdown-widget/

  2. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    Robert,

    Do you wish to display the current date, or the target 'launch' date next to the countdown? Currently there is no way to auto-display any date info, but this could be added in the next release.

    Must it be beside, or would above and/or below the countdown also work?

  3. lexyview
    Member
    Posted 1 year ago #

    I want the target 'launch' date. I must show this date in several places. If the date on the widget is changed, it should change everywhere else. I think it would be ideal if I could query the date from the database. Does that work? (And how?)

    thx.

  4. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    Ah, good idea... so something like a new [launchdate] shortcode that will automatically insert the date anywhere.

    The default format would be the one set in the Settings > General > Date Format, and maybe the format can be overwritten using any of the php date formats such as:
    [launchdate format="Y-m-d H:i:s"]

    The only issue is that there is no way to assign which countdown to use. As T-Countdown Widget/Shortcodes do not have id's. We'll look into this, but most likely such a feature would be something that we would add to T-Countdown Control. Then the full shortcode might look like:
    [launchdate cid="173" format="Y-m-d H:i:s"]

    What do you think?

  5. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    On second thought, this makes no sense for the free version, as you have to set up the countdown with the shortcode anyway.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.