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?
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.
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!
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.