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
Post a Comment