• Resolved undressedmoney

    (@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!

    https://www.ads-software.com/plugins/wp-topbar/

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

    (@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

    Thread Starter undressedmoney

    (@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?

    Thread Starter undressedmoney

    (@undressedmoney)

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

    You could post a job listing here:

    https://jobs.wordpress.net/

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

    https://codex.www.ads-software.com/Forum_Welcome#Offering_to_Pay

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