[resolved] [closed] Countdown Code Insert Needed (5 posts)

  1. undressedmoney
    Posted 2 years ago #

    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!


  2. Bob
    Plugin Author

    Posted 2 years ago #

    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]');


  3. undressedmoney
    Posted 2 years ago #

    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?

  4. undressedmoney
    Posted 2 years ago #

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

  5. WPyogi
    Forum Moderator
    Posted 2 years ago #

    You could post a job listing here:


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


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-TopBar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic