Thread Starter
Hal
(@halburgissnet)
In case someone else has to have this … hacky workaround: use nextgen 1.9.13, install the above mentioned plugin to use WP media library images (the original images will just get copied to a gallery specific NG folder), turn off the default WP feature that adds year + month to all uploads (this will put all images in /uploads). Then create a template using the provided NG gallery.php as a model. Inside the $images loop, rework the urls like …
$image->imageURL = WP_SITEURL . '/wp-content/uploads/' . basename( $image->imageURL );
Then add the basic picturefillWP code:
`$image_output = ‘<img class=”slideimg” src=”‘ . $image->imageURL . ‘” title=”” alt=”” />’;
echo apply_filters(‘theme_acf_image’, $image_output, ‘image’);`
Seems to work so far. NG will be adding the “use images from media library” feature “soon”, they say.
Thanks for looking into this. I haven’t yet done any testing with NextGen Image Gallery. It didn’t occur to me that NextGen would use its own custom tables and folders for images. That’s certainly a bit of a pain, but NextGen is such a massively popular plugin that it can hardly be ignored just because it doesn’t play nice.
What I’m working on for 1.3.0 is an abstraction layer of helper functions to make customization a little less complicated for those who aren’t interested in digging too deeply into the code. I’m hesitant to build in something specifically for another plugin, but if I can make it work while keeping things reasonably abstract, I will. I’ll have to take some time to familiarize myself with the NextGen documentation to figure out exactly what can be done.
Again, thanks very much for bringing up the issue and reporting back on what you have found.