Site logo

Archived topic

Adding Conditional Tag Via Hook

3 replies · Started by Berto on December 29, 2017

Viewing posts 1–4 of 4
<?php if(is_page( array( 98,99 ) ): ?>
<?php echo do_shortcode("[INSERT_ELEMENTOR id=234]"); ?>
<?php endif; ?> 

Trying to use the following conditional tag to only show the elementor template on page ID 98 and 99 but it completely removes the entire footer and I am seeing the following error log:

Custom Log: PHP Parse error: syntax error, unexpected ';' in /wp-content/plugins/gp-premium/hooks/functions/hooks.php(22) : eval()'d code on line 1

Any ideas?

Shortcode works fine on its own.

I was missing a closing bracket... All good now, thank you.

No problem!

This archived topic is closed to new replies.