Welcome at momizat support forums.

Home Forums Multinews Problem With Post Type Gallery Reply To: Problem With Post Type Gallery

  • Ahmed replied

    Hello Dear,

    please edit this file Multinews -> framework -> includes -> post-formats.php
    and replace this lines from 84 to 104 by the following code

    <?php 
    				global $posts_st;
    				$extra = get_post_meta($id , $posts_st->get_the_id(), TRUE);
    				$slides = isset($extra['slides']) ? $extra['slides'] : '';
    				if (is_array($slides)) { 
    				foreach($slides as $slide) {
    					$imgid = isset($slide['imgid']) ? $slide['imgid'] : '';
    					if ($imgid == '') { $imgid = $slide; }
    					$img = wp_get_attachment_image_src($imgid, 'big-thumb-hd');
    					$img = $img[0];
    					$imgFull = wp_get_attachment_image_src($imgid, 'full');
    					$imgFull = $imgFull[0];
    					$caption = isset($slide['caption']) ? $slide['caption'] : '';
    					$link = isset($slide['link']) ? $slide['link'] : $imgFull;
    					if (!isset($slide['link']) || $slide['link'] == '') { $lightbox = 'rel= "prettyphoto[post_gallery]"';} else {$lightbox = '';} 
    					$target = isset($slide['target']) ? 'target="'.$slide['target'].'"' : '';			
    				?>
    				<div class="postformat-gallery-item">
    				    " <?php echo $lightbox.$target; ?>>" alt="" />
    				    <?php if (isset($slide['caption']) != '') { ?><div class="postformat-gallery-cap"><h2><?php echo $caption; ?> </h2></div><!--End Caption--><?php } ?>
    				</div>
    		    <?php } } ?>