• Resolved paul.jacob

    (@pauljacob)


    I’m using thesis 1.8.5, and I want the following shortcode to execute on certain pages (using for example page 210)

    function custom_execute_shortcode() {
    	$myfunction= '[quoteRotator]';
    	$myfunction_parsed = do_shortcode($myfunction);
    	echo $myfunction_parsed;
    }
    add_action('thesis_hook_before_sidebars','custom_execute_shortcode');

    Can you please add the necessary code properly into the above shortcode. TIA for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to get a shortcode to execute on certain pages only’ is closed to new replies.