Two images on post when linking to parent post.
-
Hello,
I am currently using the following code:
[mla_gallery order="DESC" post_mime_type="image/webp" post_parent="all" link="none" itemtag="none" icontag="none" captiontag="none" size="large" posts_per_page="2" attachment_category="For Kids"] mla_caption='<div> <a href="{+parent_permalink+}" target="_blank" rel="noreferrer noopener"> <img src="{+file_url+}" alt="{+title+}" /></a><p><a href="{+parent_permalink+}" target="_blank" rel="noreferrer noopener">{+title+}</a></p></div>'[/mla_gallery]
For some reason, the gallery is displaying two images.
1. If I click on the small image, it takes me to the attachment page. Below it, there is a title that correctly points to the parent URL. The small image has the correct ALT attribute.
2. The large image points to the parent URL, and its title also points to the parent URL. However, the ALT attribute for this image is incorrect—it displays the title of the image instead of the ALT attribute set in the back end.
What am I doing wrong? I only need one image that meets the following requirements:
Clicking the image takes me to the parent post.
The title also takes me to the parent post.
The ALT attribute matches the one set in the back end for this image.
The image should display in the “large” size.
Thank you for your help in resolving this issue!
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.