Support » Plugin: WP Gallery Custom Links » Can't get it to work

  • Resolved oksanaar


    Hi there!

    First, thanks for the plugin. If I make it to work, it would be just perfect!

    Second, I installed the plugin and I do see the option of adding custom link, like in your screenshot. However, then the next step for me – after creating the gallery – is edit the gallery. That’s how wordpress takes it. And there I have the gallery settings – media file or attachmetn page. I can’t choose anything else.

    Am I just not getting something? I do use gallery shortcode.


Viewing 12 replies - 1 through 12 (of 12 total)
  • If a custom url is entered, it overrides the media file/attachment link with that value. Otherwise, it falls back to the media file/attachment link. If you view the gallery on the front end after saving your gallery/page, are the custom links showing up?

    Thanks for such a fast response. I mean that it seems to fall back to the media file. From the front end custom links are not working. It takes me to the media file/attachment instead.

    OKey. I figured it out. It seems it’s a plugin issue. I use Responsible Gallery Grid for the gallery, and apparently it is causing the problem. Would you know by any chance how to fix it?

    Thank you!

    I took a look at the Responsive Gallery Grid plugin code, and it appears that it’s replacing the default gallery shortcode function with its own function that does *not* include the post_gallery filter (which is what WP Gallery Custom Links hooks into). Thus, a Responsive Gallery Grid code modification appears to be necessary to get this to work (and you’d have to be careful not to overwrite it in future plugin updating).

    I was able to get it to work by looking in the gallerygrid.php plugin file and adding this at the top of the rgg_gallery_shortcode() function:

    $output = apply_filters('post_gallery', '', $attr);
    if ( $output != '' )
        return $output;

    so you might want to give that a shot. Beyond that, I’m not sure there’s much I can do on this plugin’s end. Good luck!

    It looks like this may have been resolved more permanently by the other plugin’s author:

    Thank you, fourlightsweb! Indeed it worked. Thank you for following it up and for making such a well-written plugin 🙂

    Can’t stress more how much it made my work easier. You are doing just a wo nderful job. Have a Happy Easter, if you are celebrating!

    Best of luck,

    Does it work with shadowbox? I installed the plugin and the links are there but when I click on the image empty loading shadowbox screen comes up. Is there any way to make it work with shadowbox?

    Are you trying to a) get the link to come up in shadowbox, or b) link to something that opens without the shadowbox? If a), that would probably depend on the capabilities of your shadowbox. If b), make sure the image/gallery is set to remove onClick effects, and if it continues to not work, see the FAQ entitled “I’ve set my gallery to remove Lightbox effects, but they are still coming up. Why?”

    I am trying to link a thumbnail image to a page. It’s set to remove effects and javascript is set after shadowbox too. But when I check the source code shadowbox code is still there, any Ideas?
    I appreciate your help.

    Do you have a link where I can see your gallery?

    Also, I’ve updated the FAQs, so you might want to take a look at #5:

    The shadowbox can still be there, but WP Gallery Custom Links unbinds all onclick effects and then adds its own on images that have custom links, so it shouldn’t apply to those images.

    Thanks a lot for your help. I moved all javascript links to the bottom and it worked. It must’ve been the order after all.
    Awesome plugin!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Can't get it to work’ is closed to new replies.