2013-08-11, 04:00:39
is it possible to do something to not display a tag <li> with empty fields?
Code:
<ul class="slides">
<li>
<?php get_special_field_image('gall1', 'Belle Decor', '770', '302'); ?>
</li>
<?php if (defined('gall2')) { ?>
<li>
<?php get_special_field_image('gall2', 'Belle Decor', '770', '302'); ?>
</li>
<?php } ?>
<?php if (defined('gall3')) { ?>
<li>
<?php get_special_field_image('gall3', 'Belle Decor', '770', '302'); ?>
</li>
<?php } ?>
<?php if (defined('gall4')) { ?>
<li>
<?php get_special_field_image('gall4', 'Belle Decor', '770', '302'); ?>
</li>
<?php } ?>
</ul>