• I’d like to place a timer on a few parts of a website, how can I call it via shortcode pr via a php call in a template file? (Shortcode would be preferred)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Jassi Bacha

    (@klikster)

    Also, is it possible to display the end date of a timer? For example have it display the date and month of when the timer would expire?

    Plugin Author Nabil Lemsieh

    (@nlemsieh)

    Hi @klikster

    I’d like to place a timer on a few parts of a website, how can I call it via shortcode pr via a php call in a template file? (Shortcode would be preferred)

    Yes, you use the code snippet below to display a timer in your template file:

    <?php echo do_shortcode('[hurrytimer id="12345"]'); ?>

    Also, is it possible to display the end date of a timer? For example have it display the date and month of when the timer would expire?

    You can put this variable {date} in the headline box to display the end date. Note that this is available only for one-time and recurring timers at the moment.

    Thread Starter Jassi Bacha

    (@klikster)

    Yes, you use the code snippet below to display a timer in your template file:

    <?php echo do_shortcode('[hurrytimer id="12345"]'); ?>

    Perfect, thank you! I realized after reading this that you displayed the shortcode on the edit HurryTimer page on the right side, apologies for missing that initially!

    You can put this variable {date} in the headline box to display the end date. Note that this is available only for one-time and recurring timers at the moment.

    Do you have any plans to add this in for Evergreen? Just curious. Thanks again!

    Plugin Author Nabil Lemsieh

    (@nlemsieh)

    Hi!

    Do you have any plans to add this in for Evergreen? Just curious. Thanks again!

    Yes, this will be available for evergreen timers as well in a few weeks.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Possible to call a timer via a shortcode?’ is closed to new replies.