conditionally output
-
I would like to show an image right with my excerpt. I am using
<p><strong> {title}</strong></p> <p>{excerpt}</p> <a href="{url}" title="article link">More ...</a>
For the image i would add
<a href="{url}"><img class="alignright" src="{imagesrc}" alt="{imagealt}" width="250" height="250" /></a>
However I need to grab the image only if there is one in the post. Otherwise I have code without function in my html.
Is there a solution for this with conditionally output (like documented here: https://rmarsh.com/plugins/post-options/ ), or maybe another solution?
- The topic ‘conditionally output’ is closed to new replies.