8 posts
  • Exclusive Author
  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
  • Sold between 10 000 and 50 000 dollars
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!
  • Elite Author
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 50 000 and 100 000 dollars
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
  • Indonesia
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
  • Exclusive Author
  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
  • Sold between 10 000 and 50 000 dollars
ThemeRain says

Thank you so much!

by
by
by
by
by
by