Answer the question
In order to leave comments, you need to log in
How to add a link to the full size of the images added to the post?
Good afternoon, I ask you to help with the solution of the following question:
When adding a new post to the site, you can insert an image of the desired size generated by WP into the body of the article. (medium, large, etc.)
I actually wrote a script for the automatic gallery in js:
The script takes all the images placed in the text block of the article and forms an array from them. When the user clicks on an image, a slider opens with the images scrolling from the array.
There are no problems with taking a link to a thumbnail: it is already registered in the src of images, but how to get a link to the original size? To make the images look something like this:
<img src="ссылка на миниатюру" data-fullsize="ссылка на исходный размер" alt="" />
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question