You need to use the type parameter for custom field. Try this once
<?php
$currentshowid = get_the_ID();
$today = date('Y-m-d');
$args = array(
'meta_key' => 'show_id',
'meta_value' => $currentshowid,
'orderby' => 'meta_value_num',
'order' => ASC,
'meta_query' =>array(
'relation' => 'AND',
array(
'key' => 'date_end',
'value' => $today,
'compare' => '>=',
'type' => 'date'
),
),
);
Related Posts:
- How can you query posts by advance custom field when the value is a serialized array? [closed]
- Filtering multiple custom fields with WP REST API 2
- WP REST API: Order posts by meta value (acf)?
- meta_query with array as value
- Check for the existence of custom field
- pre_get_posts filter using numeric meta_query comparison (from dates)
- Using meta_query and custom fields within pre_get_posts to return posts within a numerical range
- Comparing arrays with meta_query in pre_get_posts
- ACF repeater field with meta_query
- Can an array be used as a meta_query value?
- sort by date in Advanced Custom Field
- Get specific repeater row (via advanced custom fields) based on Meta Query with Wildcards [closed]
- Using pre_get_posts for meta value of LIKE comparison on ACF repeater sub field
- Display post in order of ACF checkbox?
- How to write PHP array to render JSON-LD Markup for Job Postings, with ACF
- Changing a specific value inside a complex repeater/flexible content field (ACF)
- Filter posts by advanced custom field
- Get posts with multiple meta values
- Trying to select 1 item from an array
- ACF checkbox array is returning numbers, not labels [closed]
- Query by radio button ACF
- WP get_posts meta_query using ACF repeater field
- get_posts filter meta_query using ACF Checkbox
- Multiple orderby date arguments
- Display posts every specific day
- How to use germ_terms() with meta_query for ACF Taxonomy field?
- Help using an array in ‘exclude’ key of another array
- Convert number to date format within an array
- Time sort with meta_key using UNIX timestamp failing due to date differences
- ACF – get fields from group
- How to get “Additional CSS Class” for ACF Gutenberg block
- Query between dates using Date Picker fields
- Showing an ACF field in admin posts dashboard
- Google Places API With ACF [closed]
- ACF Repeater Field, need IF statement for if sub field has content
- Can not create fields in ACF with code
- Advanced Custom Fields – Check if multiple get_fields exist?
- ACF – Custom fields have dissappeared [closed]
- Error in Validate Field with ACF plugin in WordPress
- How to change the page title from functions.php
- Acf Pro repeater field returns null [closed]
- Insert Commas into ACF number field
- How I can check if get_theme_mod is in header or a template part
- Advanced custom fields: Customise date picker’s start date (need to choose year 1500 onwards) [closed]
- What is the random string I am seeing when I use get_query_var?
- Updating the database with advanced custom fields
- Meta query: get posts with value in a multidimensional array
- ACF: replace comma with another sign [closed]
- Organize media library into folders and get folders via WP Rest API?
- ACF (Advanced Custom Fields) not updating post or postmeta values
- ACF Multiple Checboxes Output
- Insert Content into Script with Advanced Custom Fields
- Migrating data from ACF to WordPress custom meta boxes
- Advanced Custom Fields – display label and value only if value entered
- ACF: Querying relationship fields with Author
- Function wp_enqueue_style was called incorrectly
- last_name + first_name orderby with meta_query [solved]
- ACF Clone Field – Set Default Value
- ACF save json to custom directory not working, default acf-json used instead
- ACF URL behavior, duplicating links
- Do comparision after updates hooks of acf-fields?
- How do you display a custom field on a new page? [closed]
- Hash password field to database, unhash in admin?
- Displaying an ACF list of users
- Advanced Custom Fields – Check multiple Empty Fields [closed]
- Simple Calendar
- How to only show ACF field if another block is being used?
- ACF Select Field can’t return Array
- Using the WP CLI to output the HTML results of calling a post?
- Image is displaying with the url of the image as well
- wanted to sort the wp_query array by two ACF field (Year and month)
- How to add a custom field for image in “Text and Full Image(text right)” layout?
- Trying to add ACF to authors meta and adding a class at the same time
- Fancybox3 ACF repeater. URL strip out from the caption field
- Is it okay to use an ACF field to store a password for a protected area of a page?
- Query posts by current ACF meta key value on single page as related posts
- ACF Map with custom styles field
- Front End User Registration – How to Save ACF Values?
- Which is faster: Loading images from the repo, or loading them using ACF Image Content via Media Library
- ACF don’t save the selected value
- help with really simple csv importer
- WordPress API response filter by ACF value
- ACF Pro Date Picker not coming through on Loop
- How to display dropdown filters for posts
- Creating a page from acf fields
- Slow wp_posts and wp_postmeta query using Advance Custom Fields
- Use an image’s url as argument in update_field function
- Add a mailto button next to custom field download link
- Display a single row from nested array of custom field data
- Update the value of every page’s content editor with the value of an Advanced Custom Field on that page
- Advanced Custom Fields repeter field expiration
- Creating Custom Query
- WordPress/Timber/Twig – Trying to output checkbox values [closed]
- I want to place a post before all others from an ACF boleen field
- How to indicate a parent child category relationship when bulk importing
- Use value from meta key array for use in WP_Query
- Filtering custom post admin listing page elements based on acf user field
- Parsing value from Lottie JSON file
- How do I add an ACF shortcode to a non-ACF page?
- Convert acf/gutenberg markup to html