So, I have following variables:
<?php
$multi_images = image($image, $rh_post_id);
?>
Then, I want to show something like this only if the variable is not empty. I am not sure what the best way to do it.
<?php if ( empty($multi_images())) { ?>
no images
<?php }else{ ?>
there is an image
<?php } ?>
Is this correct?
Thanks!
echoinstead of opening and clogin php tags.. or set the valur of variable in loop first and than display the value of variable