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

#228798
Craig

UPDATE…I got it working sort of…

I had to order incorrect in my php…

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

But…

Now it spits out echo do_shortcode( ‘ in html along before properly executing the shortcode.

Any suggestions?