It looks like your meta_query is nested within an extra array. Aside from that, the code looks valid.
Hope this helps:
$argsTwo = array(
'post_type' => 'event',
'meta_key' => '_event_information_year_select',
'orderby' => 'meta_value',
'order' => 'ASC',
'meta_query' => array(
'relation' => 'AND',
array(
'key' => '_event_information_year_select',
'value' => 1999,
'compare' => '>'
),
array(
'key' => '_event_information_year_select',
'value' => 2003,
'compare' => '<='
)
)
);
Related Posts:
- Order by multiple meta key and meta value [closed]
- Query posts only with featured image
- Order by optional meta key?
- get_query_var function not working at all
- get_query_var( ‘paged’ ) not working outside of homepage
- WP_query to get the first two latest posts, then another loop to get the next three
- Why is WP_Query not working with category_name?
- ‘Trying to get property of non-object’ when using WP_Query with ‘fields’ => ‘ids’
- Order by Category and Post in WP custom Query
- Execute a large WP_Query with many “AND” Meta_Queries?
- Get attachment by slug
- RSS feed with specific keyword
- Get All IDs Of A Post Type Using WP_Query
- Group posts by custom field
- Multiple endpoints in one URL
- getting posts and number by specific meta value in multiple meta
- How to query using a combination of custom_field values?
- how to fire join query with post_meta
- Show one post per author and limit query to 8 posts
- Get term by custom term meta and taxonomy
- Generate a tabbed submenu — from taxonomy term or submenu item — with sample content
- SELECT * FROM $wpdb->posts WHERE ID > 160
- How to show the posts of some category first, and then all other
- Explanation of WP_Query
- Pagination stops at page 6
- Paginated HTML Sitemap
- How to limit total number of posts in wp query loop?
- Undefined property: WP_Query::$post
- Excluding Sticky Posts from The Loop and from WP_Query() in WordPress?
- How to get posts on a specific date – WP Query
- WP_Query no posts with tax_query
- WP_Query with Metavalue
- My Main Query Modification is Messing up my dynamic main – why?
- WP_Query meta_query >= date
- need to exclude APP_TAX_STORE => $term->slug
- Get a post from other loop each n-posts in the main loop
- Search for multiple tags?
- paging in WP_Query on static page
- WP_Query() and get_posts() can’t handle over a thousand posts?
- Query by multiple meta elements not seeming to work – wordpress is timing out
- Cluster WooCommerce products in each Category Archive by Tags assigned to products
- How can I use $wp_query->tax_query as tax_query parameter for a new WP_Query instatiation?
- Post loop for all taxonomy terms
- Which is faster wpdb & get_row or wp_query & ge_post_meta?
- Customy WP Query Args are convertet in SQL result
- Include post content of linked posts in search
- Highlight current post title on a page
- Why won’t draft listings appear for non-admins?
- Query_posts works when appending via AJAX call wp_query doesn’t?
- My WP_Query didn’t work after upgrading to WordPress 3.2
- meta queries do ‘either/or’ checks
- search serialised meta_value for date value?
- Get post and its children with WP_Query
- wp_trim_words strips dashicons
- WP_Query meta value order is not working
- How to get main menu only with wp_nav_menu
- relation OR instead of AND – Filtered term ID’s in loop
- How to get specific string in explode array?
- filter posts by meta key with pagination
- Single post – display list of all posts + specific post
- Ajax (jquery) wp_query pagination returns -1
- Modify output of custom loop using WP_query
- What’s wrong with this wpdb query?
- The Events Calendar, wp_query returning event date not published date
- Query to get result by Title or Meta along with tax_query parameter
- Oxygen Repeater Advanced Query
- SQL query injection with fifu image
- How do I use multiple similar queries with WP_Query on the same page?
- Use dedicated functions
- WPQuery Date and ACF
- Pagination not working on archive.php template?
- Save large WP_Query to transient === false
- 3 posts from each existing category on one page
- How to show specify category template for both parent and child category
- WP_Term_Query->get_terms() very slow query for WordPress filter
- WordPress search page pagination displaying but not functional
- Get all wp_users sort by metakey
- query all posts published by certain user id
- How to create URL parameters to run custom queries?
- How to use wp_query in different column in single loop
- Paginated Post List on Front Page
- Query custom meta value – post view and date meta
- modifying the loop multiple times with arguments passed through ajax to wp_query
- WP_Query – show posts where meta value and user_email match
- WP_Query causing links to not work
- Website goes slow down after importing long database
- Orderby Date and Category
- Pagination for custom query throws 404 errors on last pages [duplicate]
- Order posts by custom column using pre_get_posts
- wp_query in form method of widget breaks customizer
- Featured image not showing on page
- Add filter to Orderby Parameter using Array
- Need help setting up a search form for wordpress [duplicate]
- Including ‘cat’ => $cat breaks meta_query
- problem in query_vars parameters
- Limit Tags display and ad Drop Down Menu
- Add banner after the third post [closed]
- How do I subquery with custom meta fields?
- Show number of posts AND number on current page (cannot make it work)
- Advanced Search – Is this possible?