The contents of a shortcode should always be return
ed rather than echo
ed. You can read more about shortcode output on the Codex.
A while ago, I asked a question about “How to Return Loop Contents” that might prove useful in this situation.
The contents of a shortcode should always be return
ed rather than echo
ed. You can read more about shortcode output on the Codex.
A while ago, I asked a question about “How to Return Loop Contents” that might prove useful in this situation.