fourlightsweb
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Gallery Custom Links] Not saving link text after entry.Marking this as resolved due to no further response from original poster.
Forum: Plugins
In reply to: [WP Gallery Custom Links] WP Gallery Custom Links NOT WORKINGMarking this as resolved due to no further response from original poster.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Links not working on normal imagesSorry for the delayed response – WP Gallery Custom Links is only applied to [gallery] shortcodes – are the images you’re inserting part of a gallery, or standalone images? If standalone, WordPress already has built in functionality for linking individual images – just hover/click the image in your content, click the pencil icon, and change “Link To” to a custom url, and it should prompt you for a url.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Add Mailto linkSorry for the delayed response – you should be able to put “mailto:some@address.com” as the link value, and it should work like normal (I just tested it, and it worked for me). If by “wiped out” you mean it’s not saving the value, that sounds like a separate issue. Does it save the values when you edit the image through the Media section? When you hover over the image in the gallery on the front end, do you see “mailto:” in the browser status bar? There apparently is a known issue with Chrome where sometimes mailto links don’t work – does it work for you in a non-chrome browser?
Forum: Plugins
In reply to: [WP Gallery Custom Links] gallery disappeared after wp update.Based on a few people’s feedback, it looks like there may be a bug with a greedy replace that replaces more content than it should, which includes most of the gallery content instead of a single link. Unfortunately, it seems to happen almost randomly (your page looks normal to me), and errors that are difficult to reproduce are difficult to fix. Do you know what version of PHP you’re running, and possibly the operating system/version of the web server you’re on?
Forum: Plugins
In reply to: [WP Gallery Custom Links] Gallery links to the same postDid you get this working? It looks like everything is linking to different pages properly.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Linking from Gallery (Jetpack) WidgetAs a side note, with the “Carousel” option, Jetpack doesn’t seem to put links around those images, and all that content is generated by Jetpack outside of WordPress, so there’s not really any way for WP Gallery Custom Links to hook into it to modify the non-existent links, so the “Carousel” option would not work regardless of whether the gallery was in a page or a sidebar widget.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Linking from Gallery (Jetpack) WidgetWP Gallery Custom Links only works through the [gallery] shortcode in content. The Jetpack gallery widget doesn’t appear to utilize that shortcode, so there’s not a way for WP Gallery Custom Links to hook into it.
BUT, if you create a text widget and drop a [gallery] shortcode in there, the custom links should work on it. You may need to create the gallery shortcode through a page editor, and then copy/paste it into the widgets section to get all the options, etc. set up the way you want them. You may also need to add the following to your functions.php file to make sure shortcodes can run in a text widget:
add_filter('widget_text', 'do_shortcode');Hopefully this can be a workaround for you.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Caption as no-follow link ?The filter solution posted above will also add it into the source directly without having to modify the plugin code, but whatever works! 🙂
Forum: Plugins
In reply to: [WP Gallery Custom Links] Caption as no-follow link ?Adding a separate “rel” attribute in the UI would add clutter to the UI and a performance hit to the plugin for a case that doesn’t come up for very many people, so it’s not something I’m really looking at adding. But hopefully the filter or jQuery method will suffice for your site.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Caption as no-follow link ?As mentioned above, there’s no direct way to do this through the plugin, but you could use the jQuery method mentioned above, or if you want to have it directly in the page source without javascript, you could try using the plugin’s filter in your functions.php file, something like this:
add_filter( 'wpgcl_filter_raw_gallery_link_url', 'my_gallery_link_url_filter', 10, 3 ); function my_gallery_link_url_filter( $link, $attachment_id, $post_id ) { return $link . '" rel="nofollow'; }I haven’t tested this extensively, but it might work for simple cases, and if your links don’t already have rel tags on them.
Forum: Plugins
In reply to: [WP Gallery Custom Links] WP Gallery Custom Links NOT WORKINGAlso, if you look at your content with the editor in “Text” mode, do you see a [gallery] shortcode in there somewhere? The source looks like it’s either using custom theme gallery code, or possibly standalone single images, but it sounds like you did go through the process for creating the gallery, so I just want to make sure that’s what’s saved in the content.
Forum: Plugins
In reply to: [WP Gallery Custom Links] WP Gallery Custom Links NOT WORKINGIt looks like your gallery only has two images so far, and the source does say it’s using the 150×150 thumbnail size – is your gallery supposed to have more images? Link-wise it looks like your images are linking to separate pages, so it sounds like your problem is more related to the layout of the gallery, if I’m understanding correctly?
Forum: Plugins
In reply to: [WP Gallery Custom Links] not working in WP4.1If you’re using a [gallery] shortcode in your content for that gallery, I’d suggest looking at the theme’s gallery code (or contacting the author and asking) to see if the post_gallery filter is being called in the function. There are no target attributes on those images, which the plugin is supposed to always add, so it looks like the post_gallery filter the plugin uses to hook into the gallery content isn’t being called, from what I can see. See FAQ #6, “Thing to try #3”:
Forum: Plugins
In reply to: [WP Gallery Custom Links] not working in WP4.1Did you get this working? That page looks link it’s linking correctly to the urls.