Execute shortcode within shortcode

I haven’t tried this, but you could try pseudo-changing the priority of your shortcode hook.

Basically, you force your shortcode to execute before it would normally. That link shows how to execute your shortcode separately – and, more importantly, before – the other shortcodes get implemented.

This works by caching and temporarily removing all existing shortcodes, executing yours, then reestablishing the other shortcodes.

Leave a Comment