I am trying out the plugin and it seems to wor fine so far. I just have a question about implementing it in my template.
I am using the plugin to split my content in different divisions if the content is too long. So I use the code given to activate the plugin in my template and I put it within my div. The thing is that I wouldn't like my div to show up if I don't have content in "my_block".
Right now I have something like this:
<div class="block_div"> <?php the_block('blockname'); ?> </div>
I googled a bit and there is a way to do the thing I want with "the_content" but I would like to apply the same thing in "the_block".
Here is the code I found:
<?php if($post->post_content=="") : ?> <!-- Do stuff with empty posts (or leave blank to skip empty posts) --> <?php else : ?> <!-- Do stuff to posts with content --> <?php endif; ?>
Any idea on how to do that? It should be fairly easy, I am just not that familiar with php yet but hopefully I will get there.
Any help is much appreciated!