Hi, I am trying to make a conditional statement to display a default image if an image is not uploaded to the post. My code is as follows:
[wpv-if dirImg="featured-image-directory" evaluate="!empty($dirImg)"]<a class="pull-left thumbnail" href="[wpv-post-url]">[types field="featured-image-directory" size="thumbnail" align="left"][/types]</a>[/wpv-if] [wpv-if dirImg="featured-image-directory" evaluate="empty($dirImg)"]<a class="pull-left thumbnail" href="[wpv-post-url]"><img width="150" height="100" src="http://mysiteurl.com/wp-content/uploads/sites/3/2013/05/no-image-150x100.png" class="attachment-thumbnail alignleft" alt="" style="" title=""></a>[/wpv-if]
However, while when an image is uploaded it shows up correctly, when there is no image nothing displays. What am I getting wrong?