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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -