Support » Plugin: Countdown Timer » [Plugin: Countdown Timer] Shortcode in a hook?

  • Resolved eaglegrl

    (@eaglegrl)


    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

    (@fergbrain)

    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.