WordPress.org

Ready to get started?Download WordPress

Forums

WP Gallery Custom Links
[resolved] Can't get it to work (13 posts)

  1. oksanaar
    Member
    Posted 1 year ago #

    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.

    Thanks!
    Oksana

    http://wordpress.org/extend/plugins/wp-gallery-custom-links/

  2. fourlightsweb
    Member
    Plugin Author

    Posted 1 year ago #

    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?

  3. oksanaar
    Member
    Posted 1 year ago #

    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.

  4. oksanaar
    Member
    Posted 1 year ago #

    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!
    Oksana

  5. fourlightsweb
    Member
    Plugin Author

    Posted 1 year ago #

    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!

  6. fourlightsweb
    Member
    Plugin Author

    Posted 1 year ago #

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

    http://wordpress.org/support/topic/plugin-and-custom-links

  7. oksanaar
    Member
    Posted 1 year ago #

    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,
    Oksana

  8. Angua
    Member
    Posted 1 year ago #

    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?

  9. fourlightsweb
    Member
    Plugin Author

    Posted 1 year ago #

    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?"

    http://wordpress.org/plugins/wp-gallery-custom-links/faq/

  10. Angua
    Member
    Posted 1 year ago #

    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.

  11. fourlightsweb
    Member
    Plugin Author

    Posted 1 year ago #

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

  12. fourlightsweb
    Member
    Plugin Author

    Posted 1 year ago #

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

    http://wordpress.org/plugins/wp-gallery-custom-links/faq/

    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.

  13. Angua
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.