wordpress - do_shortcode() outside loop not working -


i'm trying use function do_shortcode() outside loop of wordpress. required wp-load.php , shortcodes.php on top of file, when use do_shortcode('[converter']); function outputs text [converter], not function of shortcode.

does know how make shortcode work?

thanks in advance

wp-load.php wasn't right file require, solution require following:

define( 'wp_use_themes', false );         require($_server['document_root'] .'/wp-config.php'); 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -