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

1

1 Answer 1

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 and acknowledge you have read our privacy policy.

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