• Resolved saugat2007

    (@saugat2007)


    I have been trying to update the size of the thumbnail in my archive page but it not updating.

    add_filter('wpsl_listing_template', 'custom_listing_template');

    function custom_listing_template()

    {

    ? ? global $wpsl, $wpsl_settings;

    ? ? $listing_template .= "\t\t\t" . '<figure><%= thumb %></figure>' . "\r\n";
    //....other
    ? ? return $listing_template;

    }

    // Image size to update the image
    add_filter('wpsl_thumb_size', 'wpsl_kodiak_thumb_size');



    function wpsl_kodiak_thumb_size()

    {

    //$size = array(250, 250);
    $size = 'medium';

    return $size;

    }

    Please help!!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • farroyo

    (@farroyob)

    Hi there, thank you for writing.

    Well, the code snippet looks ok, so if the thumbnails are not changing size in the frontend, maybe it is just a matter of clearing the store locator transient cache. You can do it on the settings page, near the end, by clicking the button labeled “Clear store locator transient cache”.

    I hope that helps, but get back otherwise.
    Best regards,

Viewing 1 replies (of 1 total)
  • The topic ‘wpsl_thumb_size is not working’ is closed to new replies.