I have some shortcodes, columns, that need to be nested. Say, for example I have 2 columns. Inside one of those columns shortcodes, I want to put 2 more columns. The short code would look something like this:
[one_half] <strong>content full-width of first column</strong> [one_half] <strong>content2</strong> [/one_half] [one_half] <strong>content2</strong> [/one_half] [/one_half] [one_half] <strong>content</strong> [one_half]
So the output would be 2 columns, and in the left column, it would be split in half again below some full-width content.
I read here http://codex.wordpress.org/Shortcode_API#Nested_Shortcodes that this appears to not be an option. Is there any way around this? I need to be able to add the same shortcode within a shortcode.
- The topic ‘Nested Shortcodes question’ is closed to new replies.