Guest User

Untitled

a guest
Aug 2nd, 2011
232
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. global $query_string;
  2. $query_args = explode("&", $query_string);
  3. $search_query = array();
  4. foreach($query_args as $key => $string) {
  5.     $query_split = explode("=", $string);
  6.     $search_query[$query_split[0]] = urldecode($query_split[1]);
  7. }
  8. $custom_query = array();
  9. $custom_query['tax_query'][] = array( 'taxonomy' => 'image', 'field' => 'slug', 'terms' => array('image'), 'operator' => 'NOT IN' );
  10.  
  11. $args = array_merge( (array)$search_query, (array)$custom_query );
  12. print_r( $args );
  13. query_posts( $args );
  14.  
  15. if ( have_posts() ) : ?>
RAW Paste Data