Countdown Timer
[resolved] Shortcode in a hook? (2 posts)

  1. eaglegrl
    Posted 5 years ago #

    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.

  2. fergbrain
    Plugin Author

    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Countdown Timer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic