[Resolved] Adding Conditional Tag Via Hook

Home Forums Support [Resolved] Adding Conditional Tag Via Hook

Home Forums Support Adding Conditional Tag Via Hook

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #459147
    Berto
    <?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.

    #459230
    Leo
    Staff
    Customer Support
    #459298
    Berto

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

    #459299
    Leo
    Staff
    Customer Support

    No problem!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.