code: function(){
  		$('.entry-content').each(function(i){
  			var _i = i;
  			$(this).find('img').each(function(){
  				var alt = this.alt;
  
  				if (alt != ''){
  					$(this).after('<span class="caption">'+alt+'</span>');
  				}
  
  				$(this).wrap('<a href="'+this.src+'" title="'+alt+'" class="fancybox" rel="gallery'+_i+'" />');
  			});
  		});
  	}
docs: Append caption after pictures