Supporting nested shortcodes in WordPress
Posted by: Run Tings Proper,
on 30 Mar 2015 |
View original | Bookmarked: 0 time(s)
If youre writing your own [shortcodes] or have done in the past then its important that you follow this little tip. It will only take a couple of minutes to implement and it will save your end-users from problems.
The way that WordPress extracts the shortcode tags from a post to process them is done using a regular expression. There is some debate as to whether or not this is the best approach but thats a topic for theI actually love regular expressions (as you can tell from the extensive library...