@8bar – Great question and it would be quite interesting to apply but unfortunately it is a deficit within WordPress that you cannot nest this type of shortcode within itself.
Although you can nest other shortcodes within [aside] (I do it quite often) you cannot nest an aside inside of an aside due to how WordPress parses shortcodes as a single pass function. See the Shortcode API references under http://codex.wordpress.org/Shortcode_API#Nested_Shortcodes
Now, that does not mean to say you could not create something to accomplish the same goal. Simply create a second shortcode that copies the first and call it, for example, aside-nested
Although not really recommended a quick “hack” of the current version of the plugin will work if you add the following after the current add_shortcode
add_shortcode( 'aside-nested', array( $this, 'bns_inline_asides_shortcode' ) );
It’s not fully tested but a quick test of this seems to work well enough, it just won’t be update safe although I will see if I can sort out a way to make it possible to be update safe.
PS: Have a look at this extension to BNS Inline Asides … https://github.com/Cais/bns-asides-extended
You can follow the above idea of using [aside-nested] but now it should be update safe if you put the extension into use.
~Cais.
Thread Starter
8bar
(@8bar)
Thanks for your terrific support!
@8bar – Glad to help. It’s not really the solution I was looking for but it will definitely do the job in the interim. Thanks for the enhancement idea!
~Cais.