Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="sliderwarp" class=" border">
- <div id="coinslid" class="slpost">
- <?php
- $featucat = get_option('fiftytwo_slider1_category');
- $my_query = new WP_Query('showposts=5&category_name='. $featucat .'');
- var_dump( $my_query );
- if ($my_query->have_posts()) :
- ?>
- THERE ARE POSTS
- <!-- Start Slider Image -->
- <div class="tabbig">
- <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
- <div id="feature-<?php the_ID(); ?>" >
- <a href="<?php the_permalink() ?>">
- <?php
- if ( has_post_thumbnail() ) {
- echo 'THERE IS A THUMBNAIL';
- the_post_thumbnail( 'sliderthumb' );
- }
- else {
- echo 'THERE IS NO THUMBNAIL';
- }
- ?>
- </a>
- <?php if (get_option('fiftytwo_disinpost') <> "true") { ?>
- <div class="inpost">
- <h2><a href="<?php the_permalink() ?>"><?php echo short_title('...', 10); ?></a></h2>
- <?php echo pov_excerpt( get_the_excerpt(), '90'); ?><br/>
- </div>
- <?php } ?>
- </div>
- <?php endwhile; ?>
- </div>
- <?php endif; ?>
- <!-- End Slider Image -->
- <!-- Start Slider Small -->
- <?php if ($my_query->have_posts()) :?>
- <ul id="tabsmall" >
- <?php while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?>
- <li>
- <a class="slthumb" href="#feature-<?php the_ID(); ?>"></a>
- </li>
- <?php endwhile; ?>
- </ul>
- <?php endif; ?>
- <!-- End Slider Small -->
- </div>
- </div>
- <!-- end slider -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement