Write a custom query to order elementor loops by custom date field
Budget: €8 – €30 EUR
I need someone to help me find a solution to order this content (loops in a loop carousel) by date, with the date pulled from a custom field.
What I have done so far :
1. Created a Custom Post Type called "dates" for events.
2. In that Custom Post Type, I have created a custom field (ACF date picker ) called "date-event" which allows to put a date for an event (formated "l j F", example: Monday 01 March).
3. I have created a loop that fetches field values from the CPT "dates"
4. I have included the elementor loop carousel
I need to ASC sort the loops by "date-event", including current date.
5. I have tried to add some custom queries (with code snippets) but my php coding knowledge is not sufficient.
Just for reference, some queries I've tried with no success are in the attached txt.
What I have done so far :
1. Created a Custom Post Type called "dates" for events.
2. In that Custom Post Type, I have created a custom field (ACF date picker ) called "date-event" which allows to put a date for an event (formated "l j F", example: Monday 01 March).
3. I have created a loop that fetches field values from the CPT "dates"
4. I have included the elementor loop carousel
I need to ASC sort the loops by "date-event", including current date.
5. I have tried to add some custom queries (with code snippets) but my php coding knowledge is not sufficient.
Just for reference, some queries I've tried with no success are in the attached txt.