Sort by date or change modify tour research_

Hi,

When I do a “Search by month” the tours are sorted by date of pubblications. How can I sort the tours by departure date? Or maybe, how can I set that the search by month have the end date equals the last day of the month?

I can also do some modifications by code so if you have got some snippet you can send me that and I’ll upload it.

Hello Mirco,

Apologies for late response. The tours that have dates and prices variations are shown in result based on the date ranges you have. Also, the start_month_year_selectbox and end_month_year_selectbox work based on start and end dates rather than the month only. These dates are a pair of dates with “start” and “end” ranges. So, if you only select start month, the result will showing every tour that has start month onwards, and if you select start and end then you will see all the tours in between those.

If you mean something else, please give more info with screenshots and I will be happy to help clarify further.

Thank you

I’ve understood that, but my request is if I can sort the tour by the start date. For example:

I search a tour with month start January but the search show me all the tours sorted by price or ID. So, may I sort tours by date?

I need a function like this if you can develop that I will copy that on my functions php or else.

Thank you.

hi, was there an answer to this? I am looking for the same functionality, thanks!