March 15, 201214 yr Hi guys im back, Im looking for some help, my current slideshow only shows normal posts as done through add post, but I also have a custom post type "reviews", but I am not sure on how I would do this. I have looked through all the PHP files looking for something that links the slideshow to the post but not come up with anything. Slideshow Code <div id="slides"> <h2 class="feat-title">Featured </h2> <div class="slides_container"> <?php $slide = get_option('tiber_slide_cat'); $count = get_option('tiber_slide_count'); $slide_query = new WP_Query( 'category_name='.$slide.'&posts_per_page='.$count.'' ); while ( $slide_query->have_posts() ) : $slide_query->the_post(); ?> <div class="slide"> <?php if ( has_post_thumbnail() ) { ?> <a href="<?php the_permalink() ?>"><img class="slidimg" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&h=250&w=655&zc=1" alt=""/></a> <?php } else { ?> <a href="<?php the_permalink() ?>"><img class="slidimg" src="<?php bloginfo('template_directory'); ?>/images/dummy.png" alt="" /></a> <?php } ?> <div class="caption" style="bottom:0"> <?php wpe_excerpt('wpe_excerptlength_slide', ''); ?> </div> </div> <?php endwhile; ?> </div> <a href="#" class="prev"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/arrow-prev.png" width="40" height="40" alt="Arrow Prev"></a> <a href="#" class="next"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/arrow-next.png" width="40" height="40" alt="Arrow Next"></a> </div> Im not sure if the code that im looking for is above but if anyone could help me out I would greatly appreciate it. Website in question: www.criticsunknown.com Thanks Alot Jack
Create an account or sign in to comment