Custom directory added, but no images listed below

[ad_1]

We have a website that is using FancyGallery, which saves images into a folder /wp-content/fancygallery/… — I’ve added support for this using the snippet below:

add_filter( ‘webpc_source_directories’, function ( $directories ) {
$directories[] = ‘fancygallery/1’;
return $directories;
} );

(I’ve tried it with both just fancygallery and fancygallery/1 — there are no images in the root of that folder so tried adding /1 which didn’t work)

This DOES add the custom directory, however below in the Bulk Optimization of Images section it doesn’t show any images belonging to that folder. Screenshot below:

(I selected plugins and themes only because if I only have the custom directory selected, it gives in error in the top section about the settings being incorrect, which may be a bug)

Thank you for the plugin by the way Mateusz! Much appreciated.

  • This topic was modified 12 hours, 24 minutes ago by b2ja.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer