Specify custom links for WordPress gallery images (instead of attachment or file only).
Bam! It works perfectly. No fuss nor muss.
I am re-posting what I wrote in a support ticket here:
I'm willing to update my review if this ever gets resolved, and I still think it is a nice plugin. It's useful.
However, there is one major downside to this plugin. It is not SEO friendly, which means writing your own custom php to resolve the issue.
It has to be php, because the solution suggested by the developer requires a jQuery injection.
In this case, the solution is simple, but it is also useless.
I will also post the way I have resolved this myself, when I have actually figured it out..
Here is the same info as in my support ticket:
I was reading the posts to find out if anything had been mentioned about adding "nofollow" tags to the links, and I came across this discussion:
There are a number of solution posted there, but in particular, there is a jQuery solution involving injecting the rel=nofollow tag to the link.
This of course works, in that it inserts the tag, but it is also useless from an SEO perspective.
The purpose of this tag is to indicate you do not wish to be seen as being a link farm, or that the links are spammy.
Search Engines do not execute scripts when they are simply crawling for links. The parse the links as they are written in the html.
That means, when a spider crawls the site, it does not see the rel=nofollow tag, because it doesn't exist until the page is actually loaded.
This is actually a big thing!
In fact it is huge. A simple example might be for a social club, or a charity, who display galleries of images for things such as Sponsors.
Where there are many links of this nature that are followed, it can damage the company/club/charity who these sponsors are trying to support, which puts everyone in a difficult position.
So I guess we can hack the plugin files to hardcode the tag in, but this is not a good idea.
I like your plugin, and if it gets updated with some other useful functionality, or to fix some bug in the future, my hack gets lost.
Would it not be possible for you to add a checkbox toggle in the settings to turn on/off rel=nofollow?
That would be lovely, and for anyone who is serious about SEO, it would be really lovely!
In the meantime I guess I need to write some custom php to alter the links, and hardcode in the tags before the links are actually generated from the database.
Thanks, it did exactly what I needed.
I wanted to be able to specify custom links/URLs for the WordPress tiled galleries created through the media uploader and it wasn't possible since it only gives the option to link to attachment page, media file or none.
This plugin gave me the option to specify a URL for each gallery image.
Well done, thank you!
Just what I was looking for and now works and makes my site look fantastic. Many thanks!
Thanks for such a handy plugin. I was struggling for 2 days to solve this problem. And you did it! You saved my life :))
Make sit easy to add links to photos in a WP gallery. Thx.
It is a bit of a pain to have to go back and put links on your pics, but that is a pretty good thing to do.
I´ve been trying to do just that with code in functions.php. And been googeling and many other things for days.... And here was the perfect soloution!
Thank you so very much!
Does what it says..contrary to some others out there that will waste your time!
i am designing a website and I am using your plugin. I created a second style gallery (It means that all the classes and functions are different to the default one) and I would like to use your plugin on it.
I have installed the plugin and obviously, the plugin does not work for that gallery, because your plugin targets the default gallery. I have tried to change a littler bit the code but it did not work. Please could you tell me what part of the code I need to change, in order to target the new gallery?
Thank you and great plugin!
You must log in to submit a review. You can also log in or register using the form near the top of this page.