But it didn't work so i found a similar post that another supporter -->Luo Yang suggested some small changes and it worked for only 1 pdf. (I cant find the link of the post)
How can this be fixed?
Below is the code that currently works for 1 PDF only. If you try to add another one it will contain 2 images together in the img tag. See attached pic.
Hello Shane,
Thanks for your help. The code was provided by 2 of toolset supporters so i dont see why it shouldnt be supported.
I uploaded the pic. I use the shortcode inside a content template. The problem occurs when i upload many pdf files.
Well its the same results i got from the beginning , two images inside a img tag each image is related to the other PDF. See attached pics. In pic 2test when i remove one image with inspector it works.Any ideas why? Is it maybe the code, that only works with one PDF only and not repeatable field?
Good morning Shane,
When i click on it shows the image. I think you misunderstood i need to display the PDF images as img tags and when clicked href to the corresponding PDF file.
Hello Shane,
Thank you for your help with the code above some time ago.
But i just noticed an issue as you can see in the pictures. When the field is repeatable it works as i want it to - show image and on click open related PDF file, but when the field has only one file it shows and image and on click it opens the image on a tab which i dont want - i need the PDF file.
How to make this work the same for one file?
Thank you.