WordPress.org

Ready to get started?Download WordPress

Forums

T(-) Countdown
[resolved] Add countdown to header? (6 posts)

  1. RubyA
    Member
    Posted 2 years ago #

    Hi

    Is it possible to add the countdown to the website header area instead of the widgets area?

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

  2. Baden
    Member
    Plugin Author

    Posted 2 years ago #

    Yes. Just do_shortcode using the standard [tminus] shortcode

  3. beldorian512
    Member
    Posted 2 years ago #

    Could you please post an example for this shortcode, of what I would put in the header? I haven't used this do_shortcode type of code before - Thanks for your help! :)

    [tminus t="2012-05-18 09:00:00" before="<p>This is my countdown timer</p>" omitweeks="true" style="carbonlite" jsplacement="inline"/]

  4. Baden
    Member
    Plugin Author

    Posted 2 years ago #

    Dudle, really? OK:
    echo do_shortcode('[tminus t="2012-05-18 09:00:00" before="<p>This is my countdown timer</p>" omitweeks="true" style="carbonlite" jsplacement="inline"/]');

  5. Bulgarin
    Member
    Posted 2 years ago #

    I want to put date from database where is t="2012-05-18 09:00:00" , but I see only '2012' in simple text.
    How to get it? My data result from database is $row['matchDate'];
    Thanks!

  6. Baden
    Member
    Plugin Author

    Posted 2 years ago #

    Hey Bulgarin,

    What is the results from the database? What is returned from var_dump($row['matchDate']);? Are you enclosing the date value in double quotes?
    So many questions...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic