Reply To: WordPress Gallery support

#2051
Livemeshlivemesh
Keymaster

Yes, it does not work at present in single pages and blog pages as well (in case excerpt or content contains the gallery). This will require a code change in /framework/extensions/framework-extender.php file at line number 246 to (remove the if condition – that’s it) –

function mo_add_lightbox_hook($content) {
        global $post;
        $pattern = "/]*).(bmp|gif|jpeg|jpg|png)('|\")(.*?)>(.*?)<\/a>/i";
        $replacement = '$7';
        $content = preg_replace($pattern, $replacement, $content);
        return $content;
    }

This change will be in the next update. Thanks for bringing this to my attention.