Each of my posts have a single custom field that is a string of a date (not the date of the post). Instead of my theme’s current query, which orders by published date, I want to order by this custom field date. How can I change this query (the theme’s query) to instead use my custom field (a string representation of a date)?
$timeline_query = new WP_Query(array(
'post_type' => 'post',
'orderby' => 'date',
'order' => 'DESC',
'posts_per_page' => -1
));