WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. eaglegrl
    Member
    Posted 3 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
    Member
    Plugin Author

    Posted 2 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

About this Topic