Advertisement
Guest User

Untitled

a guest
Mar 4th, 2014
121
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // WP_Query arguments
  2. $args = array (
  3.     'post_type'              => 'publicidad',
  4.     'post_status' => 'publish',
  5.     'post_type' => array('publicidad'),
  6.     'category__in' => $wp_query->get('cat'),
  7.     'tax_query' => array(
  8.         array('taxonomy' => 'ubicaciones','field' => 'slug','terms' => 'ub-categoria'),
  9.     'orderby' => 'rand'
  10. );
  11.  
  12. // The Query
  13. $query_ads = new WP_Query($args_ads);
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement