Greetings,

Hope everyone is doing well! 

Due to the Eid holiday, most of our team members will be unavailable from 11 May 2021 to 18 May 2021. During this time we will be unable to provide replies to any support-related queries. We will get back to you on 19 May 2021.

In the meantime, we appreciate your patience. 

Wishing you a Very Happy Eid holiday. 
Stay blessed & safe.

Thanks
Redq, Inc

Okay
  Print

How to get 300x300 image url for the search result grid?

you can use the below hooks code

// The filter callback function.
function example_callback($data)
{
    foreach ($data['allPosts'] as $key => $value) {
        $thumbnail_url = wp_get_attachment_image_src(get_post_thumbnail_id($value['ID']), array('300', '300'), true);
        $data['allPosts'][$key]['medium_thumb'] = $thumbnail_url[0];
    }
    return $data;
}
add_filter('reactivepro_get_grid_all_data', 'example_callback', 10);

Then in your grid template code replace the img src with below code

<img src={{post.medium_thumb}} alt="medium thumb image"/>