Can anyone help me with a conditional statement I am trying to insert into a GP hook?
I want the snippet to appear on all pages EXCEPT archive pages and the page with the id of 27696.
The code I am using is:
<?php if (! is_archive() || is_page( 27696 ) ) : ?>
<?php echo do_shortcode( '[xyz-ihs snippet="Newsletter"]' ); ?>
<?php endif; ?>
However, this code isn’t working (the snippet is still appearing on all pages).
I know the error is on my end — any tips?