[resolved] Thumbs Captions

HomeForumsAlpha/Beta[resolved] Thumbs Captions

This topic has 1 voice, contains 4 replies, and was last updated by  Baf 199 days ago.

Viewing 5 posts - 1 through 5 (of 5 total)
Author Posts
Author Posts
31 October 2011 at 5:39 #2830

Baf

When thumbs captions are disabled (and they are not showing in the gallery view) they are still showing when inserting them via shortcode

31 October 2011 at 9:03 #2841

Marcel

The shortcode image is not the same as a thumbnail image, even if they have the thumbnail size.

31 October 2011 at 9:48 #2845

Baf

So, I think that disabling images name (DSC_3543.JPG) everywhere except breadcrumbs is a good idea.

For what purposes we give our readers a image name, when it has no captions?

It is boring :( There is a workaround – to have friendly captions for EVERY image – but it’s very big work, and boring too

Please, add a logic “If there is no user-defined caption, when insert nothing in foto caption”

31 October 2011 at 11:14 #2847

Marcel

It will not be an options, but wait 15 sec and download latest from trunk.
Use filters:

 
function my_caption( $caption, $image ) {
  if ( '' == $image->caption )
    $caption = '';
  return $caption;
}
add_filter( 'lazyest_image_caption', 'my_caption', 10, 2 );
 
31 October 2011 at 12:29 #2855

Baf

Thanks a lot another time :)

It adds about 0,005 secinds to the page generation, but it works =)

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

The topic ‘[resolved] Thumbs Captions’ is closed to new replies.

RSS RSS feed for this Topic