Use PublishPress shortcode in hyperlinks and images?
-
My website displays images of the author(s) of each post. I want the images to link to the author archive page.
I use PublishPress shortcode to retrieve the image URL:
[publishpress_authors_data field="avatar"]
Which means I want to achieve something like this:
<a href="author_archive.html"><img src="[publishpress_authors_data field="avatar"]"></a>
I fail in this. Even if I would find a solution, my next problem is that some posts have multiple authors. The output from the PublishPress shortcode would therefore consist of two (or more) image URL:s, i.e., e.g.:
<a href="author_archive.html"><img src="URL 1, URL 2, URL 3…"></a>
Is there a solution to my problem(s)?
The page I need help with: [log in to see the link]
- The topic ‘Use PublishPress shortcode in hyperlinks and images?’ is closed to new replies.