8 posts
    Has sold $40,000+ on Envato Market Has collected 1+ items on Envato Market Sells items exclusively on Envato Market Has been part of the Envato Community for over 2 years
ThemeRain says

Yeah, I just forget added ’..’ . But if I put ’.$gallery.’ I get only one last title value.

60 posts Talk less do more!
    Has referred 10+ members Has sold $75,000+ on Envato Market and is now an Elite Author Has collected 50+ items on Envato Market Elite Author: Sold more than $75,000 on Envato Market
+3 more
Rifki says

The $thumbnail variable must be placed and echo’ed inside of the foreach.

$wp_query = new WP_Query(array('post_type' => 'post', 'posts_per_page' => '3')); 
while($wp_query->have_posts()) : $wp_query->the_post();
    $slides = get_post_meta($wp_query->post->ID, 'meta_box_gallery', true); 

    foreach($slides as $slide) { 
        $gallery = $slide['title'];
        $thumbnail = '<div class="rain">'.$gallery.'</div>';
        echo $thumbnail;
    } 
endwhile;
8 posts
    Has sold $40,000+ on Envato Market Has collected 1+ items on Envato Market Sells items exclusively on Envato Market Has been part of the Envato Community for over 2 years
ThemeRain says

Thank you so much!

by
by
by
by
by
by