a little script help needed
how to tell the following script to use specific categories and tags rather than random?
so it will display just the categories and tags i want it too. ie blowjobs, oral...etc..
<h2 class="post-title">Videos selected for you</h2>
<?php $args = array( 'numberposts' => 42, 'orderby' => 'rand' );
$rand_posts = get_posts( $args );
foreach( $rand_posts as $post ) : ?>
<div class="post" id="post-<?php the_ID(); ?>">
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail(array(240,180), array('alt' => get_the_title(), 'title' => '')); ?></a>
<?php if ( get_post_meta($post->ID, 'duration', true) ) : ?><div class="duration"><?php echo get_post_meta($post->ID, 'duration', true) ?></div><?php endif; ?>
<div class="link"><a href="<?php the_permalink() ?>"><?php short_title('...', '34'); ?></a></div>
<span>Added: <?php the_time('F j, Y'); ?> at <?php the_time('g:i a'); ?></span>
<span><?php the_tags('Tags: ', ', ', ''); ?></span>
</div>
<?php endforeach; ?>
<div class="clear"></div>
|