Guest User

Untitled

a guest
Jun 15th, 2012
63
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <div id="moving_tab">
  3. <h3><span class="item">// Rastgele Galeriler //</span></h3>
  4. </div>
  5.  
  6. <div class="content">
  7. <div class="panel">
  8. <ul>
  9.  
  10.  
  11. <?php $alt1 = new Wp_Query("showposts=10&orderby=rand"); while($alt1->have_posts()) : $alt1->the_post(); ?>
  12. <li>
  13. <div class="wp-caption" style="width: 300px">
  14. <a href="<?php the_permalink('') ?>" title="<?php the_title(''); ?>">
  15. <?php if( get_post_meta($post->ID, "alt1", true) ): ?>
  16. <img src="<?php echo get_post_meta($post->ID, "alt1", true); ?>" alt="<?php the_title(); ?>" width="300" height="95" class="size-full wp-image-3402" />
  17. </a>
  18. <p class="wp-caption-text"><?php the_title(''); ?></p>
  19. </div>
  20. </li>
  21. <?php else: ?><?php endif; ?>
  22. <?php endwhile; ?>
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29. </ul>
  30.  
  31. </div>
  32. </div>
RAW Paste Data