do_shortcode() outside loop not working

I’m trying to use a the function do_shortcode() outside the loop of WordPress.
I required wp-load.php and shortcodes.php on top of the file, but when i use do_shortcode('[converter']); the function only outputs the text [converter], not the function of the shortcode.

Does anyone know how to make the shortcode work?

Thanks in advance

Source: shortcode

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.