How to get different size images?
-
Hi,
I’m using this code for gallery Lightbox
$images = rwmb_meta( 'gallery', 'type=image&size=YOURSIZE' ); // Prior to 4.8.0 if ( !empty( $images ) ) { foreach ( $images as $image ) { echo '<a href="', esc_url( $image['full_url'] ), '" title="', esc_attr( $image['title'] ), '" rel="lightbox"><img src="', esc_url( $image['url'] ), '" alt="', esc_attr( $image['alt'] ), '" /></a>'; } }
How can I use different image sizes for gallery.
Example:
echo '<a href="image size: 1280x720" rel="lightbox"><img src="image size: 480x320" alt="" /></a>';
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to get different size images?’ is closed to new replies.