Hello, I just loaded the DCG 4.0 beta on my site. I removed the DCG 3.3.3 through ftp and loaded the beta as dashboard install.
I uploaded and tested the 4.0 beta version before updating to wordpress 3.5.2; and DCG 4.0 beta worked perfectly.
However, after updating to wordpress 3.5.2 the Dynamic Content Gallery Metabox does not retain the image url upon publishing/update the post.
I have this same problem with DCG 3.5.2 after updating to wordpress 3.5.2.
Hi!
First of all, 4.0 is a big improvement management-wise.
Unfortunately, there seems to be a bug where the slider refuses to pull in the right image size. It always uses the full-size image, even though thumbnails that match the slider size have clearly been generated (verified via FTP). I’ve tried checking and unchecking ‘hard crop’, but no love.
I have already found the problem. It’s in dcg-common-core.php in the get_featured_image function. For some reason you’re referencing non-existent image size names here:
$size = 'DCG_Main_' . $dfcg_options['gallery-width'] . 'x' . $dfcg_options['gallery-height'] . '_' . $dfcg_options['crop'];
The result of this concatenation is an iamge size that does not exist, as the only image sizes added by DCG are DCG_Main_hc, DCG_Main_br and DCG_Thumb. I replaced the line with this and it now works:
$size = 'DCG_Main_hc';
Note that a similar fix is required to make thumbnails work. Replacing:
$thumb = get_the_post_thumbnail( $id, 'DCG_Thumb_100x75_true', $args );
with
$thumb = get_the_post_thumbnail( $id, 'DCG_Thumb', $args );
in dcg-gallery-core.php will fix them.