global $switched;
switch_to_blog(3);
$my_query = new WP_Query('category_name=iphone');
while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate[$post->ID] = $post->ID;
....etc
global $switched;
switch_to_blog(3);
$term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'));
$my_query = new WP_Query(array('post_type' => 'ad_listing', 'post_status' => 'publish','ad_cat' => $term->slug, 'showposts' => 20, 'orderby' => 'rand'));
while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate[$post->ID] = $post->ID;
$my_query = new WP_Query(array('post_type' => 'ad_listing', 'post_status' => 'publish','ad_cat' => 'iphone', 'showposts' => 20, 'orderby' => 'rand'));
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)