View difference between Paste ID: rRSzyMKw and VyKPV9A1
SHOW: | | - or go back to the newest paste.
1
// WP_Query arguments
2
$args = array (
3
	'post_type'              => 'publicidad',
4
	'post_status' => 'publish',
5-
 	'post_type' => array('publicidad','any'),
5+
 	'post_type' => array('publicidad'),
6
 	'category__in' => $wp_query->get('cat'),
7
	'tax_query' => array(
8-
		array('taxonomy' => 'publicidad_categories','field' => 'slug','terms' => $wp_query->get)),
8+
9
	'orderby' => 'rand'
10
);
11
12
// The Query
13
$query_ads = new WP_Query($args_ads);