WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Countdown Code Insert Needed

[Resolved] Countdown Code Insert Needed

  • undressedmoney
    Member

    @undressedmoney

    Dear guys:

    I need a working code for a countdown timer. The trouble i have is this: there are many working countdown timers in wordpress that work with shortcodes, but I can’t use those shortcodes in WP Top Bar.

    I want a countdown for Halloween. I know that I can create a toolbar for each day and make it like “Only xxx days left to Halloween!” but that is a lot of extra work.

    I look for a soution to be able to enter some code that automatically displays a countdown like those countless countdown timer plugins offer!

    Thanks for an urgent solution of this!

    http://wordpress.org/plugins/wp-topbar/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Bob
    Participant

    @rfgoetz

    To execute a shortcode, you can use the do_shortcode() function.

    For example, here is one way to do it in the PHP tab. This will create a countdown timer. Using the code below, you would need to style the timer with CSS to make it look nice.

    echo do_shortcode( '[tminus t="10-31-2014 00:00:00"]HTML to be displayed when the countdown reaches zero.[/tminus]');

    Bob

    undressedmoney
    Member

    @undressedmoney

    i am not really a programmer, is it possible to have a screenshot to where exactly put it in – in “before the topBar is generated” or “after” – and then what to add into the regular text field?

    undressedmoney
    Member

    @undressedmoney

    or is there someone who can program this for me for pay

    WPyogi
    Forum Moderator

    @wpyogi

    You could post a job listing here:

    http://jobs.wordpress.net/

    As per the forum guidelines, this thread is now closed – nothing personal, it just attracts too much spam –

    http://codex.wordpress.org/Forum_Welcome#Offering_to_Pay

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Countdown Code Insert Needed’ is closed to new replies.