Show images as a list, not a slider
-
Hi,
can somebody help me with the PHP code?
I need to turn the flexslider into a list of images, one above the other.At the moment I have this:
<!– Portfolio Image Slider –>
<?php
$check_imgs = get_post_meta( $post->ID, ‘custom_otw-portfolio-repeatable-image’, true);
if( !empty( $check_imgs[0] ) ) {
//if(get_post_meta($post->ID, ‘custom_otw-portfolio-repeatable-image’, true) ){
?>
<div class=”portfolio-gallery-wrapper”>
<div class=”flexslider” id=”portfolio-gallery”><div class=”flex-viewport” style=”overflow: hidden; position: relative;”>
<ul class=”slides” style=”width: 1600%; transition-duration: 0s; transform: translate3d(0px, 0px, 0px);”>
<?php
$post_meta_data = get_post_custom($post->ID);
$custom_repeatable = unserialize($post_meta_data[‘custom_otw-portfolio-repeatable-image’][0]);
foreach ($custom_repeatable as $custom_image) {
$url = wp_get_attachment_image_src($custom_image, ‘otw-porfolio-large’);
echo ‘<li data-thumb=”‘.$url[0].'” style=”width: 700px; float: left; display: block;”><img alt=”” src=”‘.$url[0].'”>’;
}
?></div><!–end flex-viewport–>
</div><!–flexslider–>
</div><!–porfolio-gallery-wrapper–>
<?php } ?>
<!– END Portfolio Image Slider –>Thanks for the help!
- The topic ‘Show images as a list, not a slider’ is closed to new replies.