I installed Ele Custom Skin, and it does a great job in allowing you to “skin” the lists and archives, but I still need to sort by the event date.
The following is pretty close:
$currentDate = date('Ymd'); $args = array( 'numberposts' => -1, 'meta_key' => 'date', 'orderby' => 'meta_value_num', 'order' => 'ASC', 'meta_query' => array( array( 'key' => 'date', 'compare' => '>=', 'value' => $currentDate, ), ) );
However, I’m not sure how to make that code available to Elementor.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.