Hi, You can refer to:
<?php
if ( class_exists( 'UixShortcodes' ) ) {
echo do_shortcode( "[uix_xxx]" );
}
?>
it works!
Thread Starter
oguido
(@oguido)
ok it works great, thanks!!!!
@uiuxlab – I don’t see how that helps. That simply checks if the shortcode class is loaded. That won’t make do_shortcode operate any differently. If it does your shortcodes class needs to be reworked to instantiate on init, not just when the class is asked for explicitly.
Otherwise echo do_shortcode( ” ); should just work.
Yes, you don’t need to check the class, directly do.
`echo do_shortcode( ” );