Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="slideshow">
- <!-- mclude -->
- <?php
- $args = array( 'numberposts' => 1, 'orderby'=> 'rand', 'category' => 34 );
- $rand_posts = get_posts( $args );
- foreach( $rand_posts as $post ) : ?>
- <div style="float:right;" >
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( array( 120,70 ) ); ?>
- </div>
- <div style="float:left; width:120px;">
- <h5 style="font-size:1em;" id="post-<?php the_ID(); ?>">
- <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
- </div>
- <?php endforeach; ?>
- <!-- /mclude -->
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement