Thumbnail slider-/preview problem
-
Hey,
i have a problem with thumbnails on my frontpage.
Frontpage: https://www.soulfly-rulz.de/
The image on my cloudfront cdn.soulfly-rulz.de working fine as you can see here:
thumbnail-imageHere an excerpt code of the slider code of my theme:
<div id="slider"><div class="flexslider"> <ul class="slides"> <?php $count = ft_of_get_option('fabthemes_slide_number'); $slidecat =ft_of_get_option('fabthemes_slide_categories'); $query = new WP_Query( array( 'cat' =>$slidecat,'posts_per_page' =>$count ) ); if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); ?> <li> <?php $thumb = get_post_thumbnail_id(); $img_url = wp_get_attachment_url( $thumb,'full' ); //get full URL to image (use "large" or "medium" if the images too big) $image = aq_resize( $img_url, 600, 400, true ); //resize & crop the image ?> <?php if($image) : ?> <a href="<?php the_permalink(); ?>"><img class="slide-image" src="<?php echo $image ?>"/></a> <?php endif; ?> <div class="flex-caption"> <h3><?php the_title(); ?></h3> <?php the_excerpt(); ?> </div> <?php endwhile; endif; ?>
I think it’s only a problem with the permalink but i don’t really know?
Image-exampleI hope you can help me.
Thanks
regards
daniel
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Thumbnail slider-/preview problem’ is closed to new replies.