Reply To: Shortcode via Hook – trouble with conditional

Home Forums Support Shortcode via Hook – trouble with conditional Reply To: Shortcode via Hook – trouble with conditional

#228799
Craig

OK…finally got it…

this worked…

<?php if( has_term('section-vianney-college-seminary', 'section' ) ) : ?>
    <?php  echo do_shortcode( ' [fl_builder_insert_layout slug="nav-vianney-college-seminary" type="fl-builder-template"]' );  ?>
<?php endif; ?>

I needed to wrap the echo do_shortcode line in php tags.