Hi @rahuljain012
Thanks for your reply,
Please note that the plugin resizes only product images by default, to resize other images, try this:
Are ads posted to products? If yes, add this code snippet to allow frontend uploads, under Appearance > Theme Editor > functions.php:
add_filter('wp_sir_process_frontend_upload', '__return_true');
However, if ads are posted to a custom post type, you need to add it to allowed post types by using this code snippet:
add_filter('wp_sir_process_frontend_upload', '__return_true');
add_filter('wp_sir_resize_post_type', function($post_types){
$post_types = (array) $post_types;
$post_types[] = 'post_type_name';
return $post_types;
});
Note: Make sure you change post_type_name
with one used for ads.
If you need further help with the code above, let me know if you’re using a plugin to post ads and share your site URL.
Best,
Nabil