Link to post

HomeForumsRequestsLink to post

Tagged: 

This topic has 1 voice, contains 12 replies, and was last updated by  Developer 120 days ago.

Viewing 13 posts - 1 through 13 (of 13 total)
Author Posts
Author Posts
13 January 2012 at 12:01 #5001

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

13 January 2012 at 14:06 #5002

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/

13 January 2012 at 15:09 #5005

Dimitris

Does this means that i have to upload the images in 2 locations?

13 January 2012 at 15:30 #5006

Marcel

no you don’t have to do that just use the gallery and put the link in your gallery fields

13 January 2012 at 17:04 #5011

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.

13 January 2012 at 17:09 #5012

Dimitris

i also updated to 3.3.1 and I got the same behavior.

13 January 2012 at 21:12 #5013

Developer

probably a javascript bug somewhere
what other plugins do you have?

14 January 2012 at 9:10 #5021

Dimitris

suddenly it works .I have no idea with that happened.

14 January 2012 at 9:29 #5022

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.

17 January 2012 at 11:07 #5045

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);
 
18 January 2012 at 11:25 #5061

Dimitris

Thanks a lot .Description or caption?I can not get it to work?I copied the code to theme functions.php.

18 January 2012 at 12:23 #5063

Dimitris

$onclick['href'] = $thumb->caption;

This works and redirects to whatever link you put in image caption.

18 January 2012 at 21:43 #5067

Developer

Yes, but you’d better use descriptions because they do not show up thumbnail listings

Viewing 13 posts - 1 through 13 (of 13 total)

The topic ‘Link to post’ is closed to new replies.

RSS RSS feed for this Topic