I have a shortcode defined in a plugin as follows:
// [tag1] -> Some Longer Text
function shortcode_example1() {
return 'Some Longer Text';
}
add_shortcode('tag1', 'shortcode_example1');
Now within a wordpress page I am trying to access the plugin as follows:
[tag1]
However, the shortcode is not run and the output is just "[tag1]". Can you help?
Thanks for your help.
do_shortcode
filter from thethe_content
hook? Try switching to a default theme (is your theme usingthe_content()
?) and disabling all plugins. Then enable them 1 by 1 to find the potential conflict.