• Resolved oguido

    (@oguido)


    Hello. How can I do_shortcode() with yours? it’s not working…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author UIUX Lab

    (@uiuxlab)

    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.

    Plugin Author UIUX Lab

    (@uiuxlab)

    Yes, you don’t need to check the class, directly do.
    `echo do_shortcode( ” );

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Call shortcode with PHP’ is closed to new replies.