• Resolved shuangmiles

    (@shuangmiles)


    I have this custom post type webinars that has a custom field called ‘date-time’. I am trying to make it so that it shows the recent events for this show first. This is my query

    	$query = array(
    		'posts_per_page' =>18,
    		'post_type' => 'webinars',
    		'order' => 'DESC',
    		'orderby' => 'meta_value',
    		'meta_key' => 'date-time',
    		'meta_type'      => 'DATETIME',
    		'paged' => $paged
    		
    	);

    But as you can see the dates are all over the place and doesn’t follow any order I understand. I’ve echoed the query on the page. Any idea what is going on?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi @shuangmiles

    ACF Support Team here. This forum is generally used by ACF users to help each other out. 

    However, we would love to continue investigating and troubleshooting this issue, please can you create a ticket using our ?support form and we can look into it further.

Viewing 1 replies (of 1 total)
  • The topic ‘Sorting for custom field date time picker is not working’ is closed to new replies.