WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. undressedmoney
    Member
    Posted 9 months 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!

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

  2. Bob
    Member
    Plugin Author

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

    Bob

  3. undressedmoney
    Member
    Posted 9 months 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
    Member
    Posted 9 months ago #

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

  5. WPyogi
    Volunteer Moderator
    Posted 9 months ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic