My situation :
I’ve many pictures and that i want to bulk change the ‘hyperlink’ attribute. That is the attribute that’s used to hyperlink the picture to both itself, or to a different web site. So when the picture is clicked, it both exhibits the identical picture (besides bigger) or it takes you to a different webpage as specified by the hyperlink.
I perceive there’s an possibility inside wordpress that enables uploaded pictures to set this attribute to both ‘none’, ‘file’, ‘media’.
The problem i’ve is that this :
I’ve for instance 1,000 pictures. For every picture I want to hyperlink it with a url with the next format :
In order that when the picture is clicked it takes you to the above tackle with the filename because the parameter. For every picture, the parameter of the url is the picture title itself.
By the way in which, I do know i may individually re-edit the photographs through wordpress and ‘onerous code’ the urls within the hyperlink fields (through the gallery plugin) for every picture however this would be the absolute final resort.
The best answer is a bulk changer in php (in capabilities ?), which amends hyperlink attribute for all pictures, say in a listing or gallery.
Ultimate answer i used to be attempting out, is to do some rewrite guidelines within the .htaccess file which may imitate the ‘onclick’ perform. However i feel htaccess isnt made for such performance eg onclick
Any assist could be actually appreciated.
Many thanks upfront