Advertisement
Viper007Bond

Untitled

Jul 8th, 2011
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.62 KB | None | 0 0
  1. <div id="sliderwarp" class=" border">
  2. <div id="coinslid" class="slpost">
  3. <?php
  4.     $featucat = get_option('fiftytwo_slider1_category');
  5.     $my_query = new WP_Query('showposts=5&category_name='. $featucat .'');   
  6.     if ($my_query->have_posts()) :
  7. ?>
  8.  
  9. THERE ARE POSTS
  10.  
  11.     <!-- Start Slider Image -->
  12.     <div class="tabbig">
  13.     <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>  
  14.    
  15.         <div id="feature-<?php the_ID(); ?>" >
  16.                 <a href="<?php the_permalink() ?>">
  17.                
  18.            
  19.                
  20.                         <?php
  21.  
  22. if ( has_post_thumbnail() ) {
  23. echo 'THERE IS A THUMBNAIL';
  24.         the_post_thumbnail( 'sliderthumb' );
  25. }
  26. else {
  27.     echo 'THERE IS NO THUMBNAIL';
  28. }
  29.  
  30. ?>
  31.                        
  32.                        
  33.                        
  34.                        
  35.                         </a>
  36.                        
  37.                         <?php if (get_option('fiftytwo_disinpost') <> "true") { ?>
  38.                         <div class="inpost">
  39.                             <h2><a href="<?php the_permalink() ?>"><?php echo short_title('...', 10); ?></a></h2>
  40.                             <?php echo pov_excerpt( get_the_excerpt(), '90'); ?><br/>
  41.                         </div>
  42.                         <?php } ?>
  43.         </div>
  44.        
  45.        
  46.         <?php endwhile; ?>
  47.    
  48.    
  49.    
  50.     </div>
  51.     <?php endif; ?>
  52.     <!-- End Slider Image -->
  53.  
  54.  
  55.  
  56.     <!-- Start Slider Small -->
  57.     <?php if ($my_query->have_posts()) :?>
  58.  
  59.         <ul id="tabsmall" >
  60.         <?php while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?>
  61.             <li>
  62.                 <a class="slthumb" href="#feature-<?php the_ID(); ?>"></a>
  63.             </li>
  64.         <?php endwhile; ?>
  65.         </ul>
  66.    
  67.     <?php endif; ?>
  68.     <!-- End Slider Small -->
  69.  
  70.  
  71. </div>
  72. </div>
  73. <!-- end slider -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement