$args = array(
'post_type' => 'ad_listing',
'post_status' => 'publish',
'ad_cat' => 'my_category',
'showposts' => 10,
'orderby' => 'rand'
);
$my_query= new WP_query($args);
while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate[$post->ID] = $post->ID;
There are currently 1 users browsing this thread. (0 members and 1 guests)