Advertisement
Viper007Bond

Untitled

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