'post') ); /*echo "
";
						print_r ($query);*/
						$c=0;
					while($query->have_posts() ){
							$query->the_post();
								$meta_image= get_post_meta( get_the_ID(), '_meta_image', true );
								$meta_caption= get_post_meta( get_the_ID(), '_meta_caption', true );
							
								if($meta_image != '' || $meta_caption != ''){
								$images[$c]=$meta_image;
								$captions[$c]=$meta_caption;
								$c++; }
								 else {
									//echo 'Enter Image Plz';
								}
						} 	
						
			if($images != '' || $captions != '' ){ $i=1; 								
						?>
                        
				
have_posts()){ $query->the_post(); ?> />
This is an example of a HTML caption with a link.
'post' ) ); while ( $query->have_posts() ) : $query->the_post(); //$cap=get_post_meta( get_the_ID(), '_meta_caption', true ); //print_r($cap); ?>
class="nivo-html-caption">