Hey all.
I worked out a simple shortcode for templating but it seems that when I use it too much my post content becomes empty and this probably applies to all the shortcodes mechanism. I'm pretty sure it's not my shortcode function that's causing the glitch, because I added a die() command at the very beginning of my shortcode function and WordPress dies when content is small, but doesn't when it's too big. This means that it doesn't call the function at all.
I'm not sure about how big the content should be, but I tried pasting [my-shortcode] [my-shortcode] [my-shortcode] etc for a few hundred times and BAM! No content. Now the strangest part of it is that if I add some text to my post at the very beginning before the shortcodes, it workes out! But then again, I add a few more hundred of shortcodes at the end and it dissapears again.
Is this a WordPress glitch or what? Am I missing a limitation that hasn't been documented in the codex? It's not a recursion issue is it?