Title: [Plugin: Countdown Timer] Shortcode in a hook?
Last modified: August 20, 2016

---

# [Plugin: Countdown Timer] Shortcode in a hook?

 *  Resolved [eaglegrl](https://wordpress.org/support/users/eaglegrl/)
 * (@eaglegrl)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-countdown-timer-shortcode-in-a-hook/)
 * Im trying to insert the shortcode into a hook but cant seem to get it to work.
 * here is my function
 *     ```
       function add_counter(){
       if( is_page( 'pagenamehere' ) ){
          	do_shortcode('[fergcorp_cdt_single date="november 8, 2011"]');
         }
       }
       ```
   
 * am i missing something? The hook works if i test it with a “find me!”, just doesnt
   display the timer.
 * any help would be appreciated.

Viewing 1 replies (of 1 total)

 *  Plugin Author [fergbrain](https://wordpress.org/support/users/fergbrain/)
 * (@fergbrain)
 * [14 years ago](https://wordpress.org/support/topic/plugin-countdown-timer-shortcode-in-a-hook/#post-2148853)
 * Are you still having this issue?
 * I haven’t tried using the do_shortcode, but it should work. Although, you could
   also use the PHP function instead.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Countdown Timer] Shortcode in a hook?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/countdown-timer_384620.svg)
 * [Countdown Timer](https://wordpress.org/plugins/countdown-timer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/countdown-timer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/countdown-timer/)
 * [Active Topics](https://wordpress.org/support/plugin/countdown-timer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/countdown-timer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/countdown-timer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [fergbrain](https://wordpress.org/support/users/fergbrain/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-countdown-timer-shortcode-in-a-hook/#post-2148853)
 * Status: resolved