• Hey ??
    First, sry for my bad english…

    is it possible to open the full image in a lightbox by clicking the thumbnail?

    Maybe around here:

    /**
       * Get the post Thumbnail
       * @see https://codex.www.ads-software.com/Function_Reference/get_the_post_thumbnail
       * @param unknown_type $single
       *
       */
      public function get_thumbnail($single, $lcp_thumb_class = null){
        if ($this->params['thumbnail']=='yes'):
          $lcp_thumbnail = '';
          if ( has_post_thumbnail($single->ID) ):
    
            if ( in_array( $this->params['thumbnail_size'],
                           array('thumbnail', 'medium', 'large', 'full')
                 )):
              $lcp_thumb_size = $this->params['thumbnail_size'];
    
            elseif ($this->params['thumbnail_size']):
              $lcp_thumb_size = explode(",", $this->params['thumbnail_size']);
            else:
              $lcp_thumb_size = 'thumbnail';
            endif;
    
            $lcp_thumbnail = '<a href="' . get_permalink($single->ID).'">';
    
            $lcp_thumbnail .= get_the_post_thumbnail(
              $single->ID,
              $lcp_thumb_size,
              ($lcp_thumb_class != null) ? array('class' => $lcp_thumb_class ) : null
            );
            $lcp_thumbnail .= '</a>';
          endif;
          return $lcp_thumbnail;
    
        else:
          return null;
        endif;
      }
    }

    https://www.ads-software.com/plugins/list-category-posts/

  • The topic ‘open lcp_thumbnail in a lightbox’ is closed to new replies.