I am displaying a list of the website's posts in the homepage of my website.
What i am trying to do is to show the featured image of a post if it exists.
The code i use in the output is the following, but it doesn't seem to work.
[wpv-conditional if="( NOT(empty($(wpv-post-featured-image))) )"]
<div class="row">
<div class="col-sm-3">[wpv-post-featured-image]</div>
<div class="col-sm-9">
<h4>[wpv-post-link]</h4>
<p>[wpv-post-date format="j F Y - H:i"]</p>
[wpv-post-excerpt]
</div>
</div>
[/wpv-conditional]
[wpv-conditional if="( empty($(wpv-post-featured-image)) )"]
<h4>[wpv-post-link]</h4>
<p>[wpv-post-date format="j F Y - H:i"]</p>
[wpv-post-excerpt]
[/wpv-conditional]
<hr>
My issue is resolved now. Thank you!