Help needed with the template and shortcodes
-
Hi,
I like this image credit plugin the best, but maybe you could give some advice configuring it.
I append the credits to the image captions enclosed with [caption] shortcodes. This works fine.
as Template I am using this:
<a href="[link]" target="_blank">© [source]</a><a href="[license_link]" target="_blank">| [license]</a>
It shows a copyright sign with the Source as a hyperlink and after that a vertical bar | with [license] and the licenselink.
The credits only show up when there is a value present for “Credits”. But the hyperlink to “Link” always shows up, no matter if a link was stated or not, like this in the output html:
<a href="" target="_blank">? John Doe</a>
So that just opens a blank new page, since an empty href was given.Is there a better way for a template, to only show the hyperlink, if a link is available? Same goes for the license. Any suggestions? ??
- The topic ‘Help needed with the template and shortcodes’ is closed to new replies.