I know that you can assign shortcodes if they use the do_shortcode shell, however the code says:
"However, the parser will not work if the short code macro is used to add another macro with the same name:"
Is there any way around this?
for example, if I have a short code for creating a div, for example:
[div]some content in a div[/div]
I want to be able to use:
[div] [div]a nested div[/div] [/div]
but this will crash with the standard do_shortcode wrapper.
My temporary solution is to duplicate the short code with _parent added to the name, but I can only nest 1 level in depth if I did not create div_parent1, div_parent2, etc ...
source share