• Hi!
    I’ve written a plugin and I wanted to use a shortcode in it. If I put the add_shortcode in the plugin file, it’s not working! In the frontend it’s rendered like [shortcode]. If I put it in the functions.php it’s rendering fine! Why is that?

Viewing 1 replies (of 1 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    Are you sure the file with add_shortcode() in it is actually loaded?

    Can you link to the code, so we can see how the shortcode is added.

Viewing 1 replies (of 1 total)
  • The topic ‘Shortcode only works from functions.php’ is closed to new replies.