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 :


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

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



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...

| improve this answer | |

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.