Ok the problem was with using ‘year’ as the argument name, if I changed it to something else such as ‘y’ it seems to work.
Related Posts:
- WP_Query() show posts that end later than today
- exclude custom post type by meta key in wp_query
- Displaying custom posts only if custom meta box’s date is not expired
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- Meta Query posts not showing on ending date of custom field
- Using WP meta query to show custom post types by a start and finish date
- How to sort WP_Query by a custom text field (written as a date dd/mm/yyyy)
- ACF meta_key and meta_value break loop
- Sort loop by custom field from different post type
- Loop posts in a table ordered by a custom field value
- How to get past and upcoming post by defining date in custom field?
- loop through custom post-type with two meta_keys
- Order Wp Query by earliest of 3 dates meta query
- WP_Query() displaying past post / event
- Set post date before 1970
- WP_Query orderby custom field then post_date in one query
- Get Custom post with ID
- WP_Query to loop a Custom Field, Custom Post Types do not show
- filter search result with custom post type meta key
- Posts in Multiple Columns and Rows with one single loop
- Alphabetical sorting of custom post type – one letter per page
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- How to show posts from multiple post types in a single loop? And display them separately on the same template
- Can’t sort order of wp_query with 2 meta keys
- How to display the rest of categories on Portfolio filterable
- Get_post_meta() won’t return value
- Query Custom Post by Category
- How to get current post id of a custom post type in a loop using template singel-{custom type}.php?
- WP_Query and using a variable for ‘cat’=> in the args array = WP Bug?
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- get_template_part for custom post type content not working
- Ignore sticky posts if post is not in meta query
- Creating Accordians in WordPress Theme
- How to insert content from another Custom Post type into Post?
- Display different content on homepage depending on post type
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- Sorting Custom Post Type by Meta Value but wont display when set to 0
- WP_Query orderby modified to include custom meta changes
- get_attached_media() on author page not working
- Get posts between custom dates
- I would like to have different styles for my posts based on the content of each post
- Custom post type multiple loop by taxonomy term
- List custom taxonomy specific to one custom post type
- A method for ordering mixed dates in search result loop (theory only, no actual code)
- Custom post type, organized by categories
- WP Meta query for a custom post type based on two values
- What’s the WP way to load remaining custom posts?
- What to and how to proceed with CPT to make DB small and efficient?
- How can I group posts by months and years?
- Trying to Create a PHP Variable for post_type that can be referenced Site Wide
- Getting a custom post’s custom field based on another custom post’s custom field select
- Shortcode leaves no space for other elements?
- Get category if used in a custom post type
- If meta_value of meta_key is less than today’s date update meta key
- Get post format
- Display post from custom post type
- Query Posts, order by meta value
- Loop and add Specific Categories and Products Images
- How can I increase the post count for custom post types only?
- Custom post type pagination error
- Add custom post type to query
- posts_per_page in custom WP_Query does not override “Reading” settings?
- Custom post type paging return home page
- Display post count for a specific month
- when looping through custom post data not appearing
- Order posts alphabetically with numbers but some of the posts has numbers in the title
- How to only get the content of post page while looping?
- SEARCH QUERIES – REVERSE OUTPUT
- post_type incorrect for custom post type
- Staggering featured post using ‘sticky’
- Multiple Custom Post Type in Taxonomy Archive Causing White Screen
- Adding a Section for Visitors
- Why is my loop not populating the page with my custom taxonomy terms from my custom post type?
- Show parent category and subcategory once in while loop
- How to build Custom Post Nav Menu inside of the Loop
- Loop to display parent categories in custom taxonomy
- How to get the posts that my following users are liked?
- Meta_query by date for Events archive
- next_posts_link() always generates second page link on custom post type
- Display related post content and custom field content
- Show posts for current taxonomy
- WordPress loop, show only one post per custom field
- How To Loop Through list with Custom Post Types
- How to Fix Custom WordPress Loop with Pagination on Single Post View?
- Multiple loops for custom post type to spread data across rows
- Custom Post Type + Category archive
- Loop multiple taxonomy in custom post
- $post breaking container loop
- Posts without featured image using other post’s featured image
- Get result from Custom Field in Custom Post type
- Nested loop called with shortcode duplicating the content above the main loop
- Custom post-type’s pagination not working in category.php
- Pulling in a particular post into a single page based on the post id passed into the code
- Querying meta values within an array
- why get_post_meta is returning 0?
- Get Posts From A Certain Post Type In An ID Array
- Show search for data extracted from metabox
- Get all active posts that are tied to a custom taxonomy for a custom post type
- Filter page ID outside the loop and order
- How can I show posts with the same tag?