 Dimitris
|
I find your plugin the best for galleries.I only have one request to make.Is ti possible to link to a post?
I mean when you click on an image to open a post.And this is because when you browse a gallery you find a picture that you like.How you send the link?If you have a post you can easily do this.
TIA
|
 Marcel
|
Yes you can link to a post. Either by inserting the link to the post in the image caption or description like <a href="http://mydomain/mypostslug">My post<a>, or by using the 'lazyest_thumb_onclick' or the 'lazyest_slide_onclick' filters.
Read more on http://brimosoft.nl/2011/11/28/on-click-do-something-else/
|
 Dimitris
|
Does this means that i have to upload the images in 2 locations?
|
 Marcel
|
no you don’t have to do that just use the gallery and put the link in your gallery fields
|
 Dimitris
|
When I try to enter the short code in the post according to upload tabs video,when I press show to see the folder content(photos)nothing happens.Is this a bug or something?I am using the latest version of the plugin and 3.3 wordpress.
|
 Dimitris
|
i also updated to 3.3.1 and I got the same behavior.
|
 Developer
|
probably a javascript bug somewhere
what other plugins do you have?
|
 Dimitris
|
suddenly it works .I have no idea with that happened.
|
 Dimitris
|
http://brimosoft.nl/2011/11/28/on-click-do-something-else/
I have read this but I can not figure out where should i put the post’s url so it directs to that .Can you help with an example?
I just need the thumbnail to link to the post where the image is.
|
 Marcel
|
Example where a link in the image description is used for the thumbnail on_click
function my_thumb_on_click( $onclick, $thumb ) {
$onclick['href'] = $thumb->description;
return $onclick;
}
add_filter('lazyest_thumb_onclick', 'my_thumb_on_click', 10, 2);
|
 Dimitris
|
Thanks a lot .Description or caption?I can not get it to work?I copied the code to theme functions.php.
|
 Dimitris
|
$onclick['href'] = $thumb->caption;
This works and redirects to whatever link you put in image caption.
|
 Developer
|
Yes, but you’d better use descriptions because they do not show up thumbnail listings
|