Property Gallery Image Switcher Broken
-
The image switcher for the property image gallery is broken with this version of WordPress.
Editing section-gallery.php:
<?php $gallery = get_post_meta( get_the_ID(), REALIA_PROPERTY_PREFIX . 'gallery', true ); ?> <?php if ( ! empty( $gallery ) ) : ?> <div class="property-gallery"> <div class="property-gallery-preview"> <?php echo wp_get_attachment_image( key( $gallery ), 'thumbnail' );?>
Forcing the default to thumbnail and an appropriate first image for the gallery seems to force it to work again as a work around.
- The topic ‘Property Gallery Image Switcher Broken’ is closed to new replies.