Home › Forums › Support › Hook question › Reply To: Hook question
November 16, 2016 at 8:14 pm
#245017
Tom
Lead Developer
Lead Developer
Hi there,
You would have to use a PHP conditional: https://codex.wordpress.org/Conditional_Tags
For example:
<?php if ( ! is_page( 'my-excluded-page-slug' ) ) : ?>
<?php echo do_shortcode( '[your-shortcode]' ); ?>
<?php endif; ?>