How can I get content inside one shortcode to another shortcode?
There is no definitive way of doing that in WordPress, but here are some options for you: Use a global variable to store the reference list, i.e. the content as in [ref]content here[/ref]. But I personally don’t recommend and wouldn’t be using global variable. Use a custom PHP class and add the shortcode functions as … Read more