Tell us what you are trying to do?
I have this in the template of my custum post page:
<h3>Cite this Essay:</h3>
<div class="cite-this">[types field='cite-name'][/types]. <span>“[wpv-post-title]”</span>, <span style="font-style:italic;">Electronic Book Review</span>, [types field="publicationdate" style="text" format="F j, Y"][/types], [types field='doi-ref'][/types].</div>
The last part [types field='doi-ref'][/types] is for a "doi-ref" field I set up to enter a reference url in each post (DOI). But sometimes there is no doi set in a post, which leaves this part of the concatenation blank and ending in ,.
I would like there to be a conditional - if there is no value in the doi-ref field, then enter the current post's url. I don't know the shortcode for the current posts url nor how to set a conditional.
Is there any documentation that you are following?
Trying!