WordPress.org

Ready to get started?Download WordPress

Forums

T(-) Countdown
[resolved] Show Content only if Countdown is active (6 posts)

  1. mattmatt88
    Member
    Posted 1 year ago #

    Is there also a function to show HTML/PHP content only when the countdown is active (which will be hidden, when the countdown is finished?)

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

  2. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    What do you mean by PHP content?
    Yes, you can use the before and after attributes. Please read the documentation for more info: http://plugins.twinpictures.de/plugins/t-minus-countdown/documentation/
    [tminus t="2012-12-20" before="<p>May the force...</p>"/]

  3. mattmatt88
    Member
    Posted 1 year ago #

    Thank you but it seems that div's doesn't work.
    I need such a code to be displayed only if the code is active.

    $votecode = '<div class="ld-container" tid="'.$tidcalc.'" buttonclick="no" userid='.$userid.' pageid='.$pageid.' action="http://xxx.de/poll/ajax_likes.php"></div>';

    But as soon as there is a div class, it doesn't work anymore when I define

    [tminus t="2012-12-20" after="'.$votecode.'"]

  4. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    try swapping out your double qoutes (") for single quotes (') and visa-versa...
    Also, a link to the page you are having a problem with would be most helpful.

  5. Rhuan
    Member
    Posted 1 year ago #

    me too need this solution, i need show content if only countdown active, if countdown 0 hide content, have chance this plugin make this? how make this shortcode?

  6. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    rhcarlos: where do you want to show the content?
    above the countdown would be like so:

    [tminus t="2013-12-23" before="<p>May the force...</p>" launchtarget="above"] [/tminus]

    http://plugins.twinpictures.de/plugins/t-minus-countdown/documentation/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic