You have to use meta_key instead of value to make it order by date_happening
metakey
Try this:
'meta_key' => 'date_happening',
'orderby' => 'meta_value',
Related Posts:
- WP Query group/order by category name
- Error in WP Query. If variable is empty it is displaying previous post value
- Multiple orderby values in WP_Query
- Search multiple custom fields by using meta_query
- WP_Query orderby custom field then post_date in one query
- how to filter by last name for custom post
- Filtering a WP_Query meta_query by numeric values isn’t working
- Sorting a query by custom field date
- How can I generate a RSS feed based on a custom WP_Query?
- wordpress plugin error handling
- Filtering a WP Query result
- Display Custom Post Type Fields
- Search Custom Post Type with all meta attached?
- How to sort CPT by custom meta value (date), and return posts month by month
- WP_Query on custom post type not displaying, multiple loops & get_template_part
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- WordPress query by multiple Custom fields and order by date
- Comparing timestamps in meta query doesn’t work
- Display two post types ordered by two custom fields
- Get post info inside modal window?
- Custom Taxonomy and tax_query Issue?
- Using posts and postmeta table to store custom Address Book Plugin data
- Having trouble with custom date field for CPT query (WordPress)
- how to set default value for checkbox in wordpress
- Display posts if a custom field value is equal to another custom field value
- Sort by two dates. Default entry date and custom field if present
- How to have the right design for a custom post type without accessing themes
- handling csv data with a custom post type
- Conditional to modify query results
- Customize permalink when creating a post
- Filtering by Post Meta Custom Fields – Performance
- wp_query to find posts by year and month
- WP Query—Relationship between two custom post types and their fields
- How to dynamically attach pictures to a carousel
- Custom Post Type Navigation on Custom Field
- Get all Posts If has same custom field values in Posts
- Custom Post type and Custom Field WP_Query
- Including Custom Meta with posts_where query
- WP_Query: include custom post type only with specific meta value
- WP_Query orderby modified to include custom meta changes
- WordPress custom loop filter by meta_key and value with serialize data
- Returning a list of custom post types excluding those without a specific meta_value
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- wp_query check if integer exists in custom field’s array
- Give a permalink to Custom Post Types without title
- How can I get the number of custom post type posts that have a specific attachment image set?
- Problem querying Custom post type by custom fields
- WP_Query order by custom field, then randomly order some of results
- Query custom post type with ACF Date
- Including metaboxes from custom post types in global search — continued
- Query Multiple Custom Posts by Custom Fields
- Get Posts by multiple custom fields is not working
- Order Custom Post Type by Custom Field Value
- How to use TinyMCE Editor for one of my custom post meta field?
- How to Create a WordPress Plugin With Custom Post Type/Custom Field Features?
- First custom field value (out of several) displayed twice after query
- Possible to filter custom post type with multiple meta data?
- custom comments form for custom post type
- Query based on custom fields start and end date
- Custom fields for custom post type
- Redirect to another page using contact form 7? [closed]
- DIsplaying URL of custom field in last post of certain taxonomy && post type
- How to upload an image to a custom post type
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- WP_Query get always custom post_type for first
- Sort custom post column by generated value?
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- How can I query and sort custom-post type using WP_Query
- Filter posts by their related field’s custom field
- How can I fetch all the dates from custom fields from various different custom post types and show / list them at one place in ascending order?
- Query custom post type and custom field by URL parameters
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- Query a Custom Post Type using SELECT that has ACF fields to compare dates
- meta query multiple values for the same key
- Sort custom post archives by a meta value from a different custom post type?
- Show Post columns to specific users on condition
- Custom post types – meta_query: search lesson which starts sooner
- Post Filtered by Custom Field Value
- Error when moving custom post type to bin
- Filter custom WP_Query by first letter of a custom field – hopefully using Search and Filter Pro?
- sorting in wp query based on custom field value
- Meta_Query refuses to return results
- Run query on specific admin options page and send results to select field in another function
- Custom post type that lets users create a set of posts?
- WordPress query in which condition uses custom field
- WordPress loop add heading before first of type
- How to make a shortcode for my WP_Query Loop? [duplicate]
- Query events post type after current date and timezone
- Custom post type not being pulled in widget
- Calling specific page with wp query
- How to stop wp_query searching pages as well as the specified CPT
- Selecting posts older than the current Unix epoch timestamp
- WP_Query and two custom fields returns no posts
- WP_Query get posts where post_name is empty
- Storing/querying custom date data
- Query recent posts by author
- 404 on Pages for Custom Post Type & Query_Posts
- Querying meta values within an array
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- Filter Custom post type by another Custom post type