Hi. I think I found a bug related to shortcodes with similar tags/names.
If you create shortcodes with the following names:
[web-design]
[web-design-services]
And you embed just this one in your page:
[web-design]
The output is both of the shortcodes.
Not the desired result.
~Jeff
http://wordpress.org/extend/plugins/advanced-text-widget/
Jeff, try the latest development version and let me know if it fixes the issue you're having. Thanks!
Nope, 2.0.3 is doing the same thing.
Jeff, I believe it's not the ATW's issue since the ATW doesn't process the shortcodes - it simply calls the do_shortcode function which is native API method.
Are you creating your own shortcodes? If so, change the hyphens to underscore in your code and call them that way from the content. I think that's the actual problem. So, instead of doing this [web-design], do this [web_design] - just make sure the PHP code refers to the right handler.
Okay, I just found the official "word" on this in Codex - it is sort of a known bug in WP, check this out.
Thanks, that looks like the issue so I'll rename my shortcodes.
Many thanks.
Jeff
You're welcome, Jeff! Thanks for marking this issue as "resolved". Have a great one!
I have confirmed that using naming convention my_shortcode does work with mutiple similar shortcode names as mentioned in this thread.
Thanks for finding that WP issue.
You're welcome! Glad I was able to help :)