0

I am working on a plugin and stopped in a situation, I hopesomeone can help me with a solution.

I want to have a shortcode structure like :

[shortcode_1]
[shortcode_2]
[shortcode_3]
[shortcode_4][/shortcode_4]
[/shortcode_3]
[/shortcode_2]
[/shortcode_1]

But if I use add_shortcode, only first shortcode works...

Is there any way to have a shortcode structure like this ?

Thanks

0

Try passing the content of each shortcode through apply_filters( 'the_content', $content ); - you may not be getting your shortcode output because it's never being called in the first place (beyond the top level). the_content filter include do_shortcode() (from memory), which is what you need. See how it goes...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.