Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="moving_tab">
- <h3><span class="item">// Rastgele Galeriler //</span></h3>
- </div>
- <div class="content">
- <div class="panel">
- <ul>
- <?php $alt1 = new Wp_Query("showposts=10&orderby=rand"); while($alt1->have_posts()) : $alt1->the_post(); ?>
- <li>
- <div class="wp-caption" style="width: 300px">
- <a href="<?php the_permalink('') ?>" title="<?php the_title(''); ?>">
- <?php if( get_post_meta($post->ID, "alt1", true) ): ?>
- <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" />
- </a>
- <p class="wp-caption-text"><?php the_title(''); ?></p>
- </div>
- </li>
- <?php else: ?><?php endif; ?>
- <?php endwhile; ?>
- </ul>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement