How to do an IF statement?
I have got rid of the default settings which show the Street, Zip, Ad start, Ad expiry etc.
I am now doing it manually which in turn lets me style it. But I have a problem, if the user does not tick the box then the tick still appears with blank space next to it!
So this code here:
<li class="tick"><?php echo get_post_meta($post->ID,'cp_pool',true); ?> </li>
I have a field called "Pool" which people tick if they have a pool. 95% of the people will have a pool so it is no issue, but for the ones who do not, they are not going to tick the box. But the tick image I am using still appears!
So I want it so that if they tick the box, then the field is shown with the <li> class thing but if they do not tick the box, nothing appears. How do I do this?