that's my problem:
<?php
// start the loop
foreach($slider_posts as $post) : setup_postdata($post);
// get image
$thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'home-slide');
?>
<script type="text/javascript">
$(function(){
$.mbBgndGallery.buildGallery({
// containment:"#wrapper",
containment:"body",
timer:5000,
effTimer:5000,
controls:"#controls",
grayScale:false,
autoStart:true,
images:[
"<?php echo $thumbnail[0]; ?> "
],
});
});
</script>
<?php endforeach; ?>
<?php wp_reset_postdata(); ?>
<?php } ?>
This code display just one slide image and not all slides images!
How Can I fix it?