epl_property_gallery_shortcode to resize gallery thumbnails

You can use the following filter to alter the gallery image size output up from the default of thumbnail. This is handy when using lower number of columns as the default thumbnail in 150 x 150px hard cropped in WordPress.

Gallery Settings

In Easy Property Listings > Settings > Listing Single View; you will find gallery options to enable it and change the number of columns you want to display. 

One long row of images? If your theme doesn't have any gallery CSS and the gallery appears in one long row of images, use this: WordPress Gallery CSS

Code to use

Use the following code snippet to change the default thumbnail to be the epl-image-medum-crop

gallery-shortcode-image-size.php

<?php
/**
 * Resize the default [gallery] image sizes.
 *
 */

/**
 * Adjust the default gallery image size from thumbnail
 *
 * @param string $gallery_shortcode The shortcode.
 * @param string $d_gallery_n       Number of gallery images passed from EPL Settings > Gallery. 
 *
 * @return void  Shortcode.
 */
function my_resize_gallery_thumbs_epl_property_gallery_shortcode( $gallery_shortcode , $d_gallery_n ) {
	
	$image_size = 'medium'; // thumbnail, medium, epl-image-medium-crop, large, full
	
	$gallery_shortcode = '[gallery columns="'. $d_gallery_n . '" size="' . $image_size . '" link="file"]';
	return $gallery_shortcode;
}
add_filter( 'epl_property_gallery_shortcode' , 'my_resize_gallery_thumbs_epl_property_gallery_shortcode' , 10 , 2 );