Title: WP_Query
Last modified: August 21, 2016

---

# WP_Query

 *  [danncoba](https://wordpress.org/support/users/danncoba/)
 * (@danncoba)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wp_query-6/)
 * Ok i have a very unusuall problem that i can’t resolve…
    I’m building a complex
   search that i need for my website that searches terms in taxonomy and custom 
   fields in custom post type. I have made a WP_Query for that but no matter what
   i can’t figure out what is the problem with my code
 *     ```
       $args = array(
       	'post_type' => 'automobili',
       	'meta_query' => array(
       		array(
       			'key' => 'cijena',
       			'value' => array(1000, 10000),
       			'type' => 'numeric',
       			'compare' => 'BETWEEN'
       		)
       	),
       	'posts_per_page' => 10
       );
   
       $query = new WP_Query( $args );
       ```
   
 * I’m using post type “automobili” that should query post type “cijena” on values
   between 1000, 10000… This is very simple query of what i need but this doesn’t
   work in my search

The topic ‘WP_Query’ is closed to new replies.

## Tags

 * [meta_query](https://wordpress.org/support/topic-tag/meta_query/)
 * [queries](https://wordpress.org/support/topic-tag/queries/)
 * [wp_query](https://wordpress.org/support/topic-tag/wp_query/)

 * 0 replies
 * 1 participant
 * Last reply from: [danncoba](https://wordpress.org/support/users/danncoba/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/wp_query-6/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
