I noticed there are plugins to allow shortcode usage in widgets, and they obviously work on posts/pages, but they don't seem to work when added directly to the theme files.
Is there a way to allow shortcodes to work when added to a theme file?
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
if you are trying to use shortcodes in PHP templates then you need to use this function :
check this out :