Can you tell me what's the logical order the theme is using now to display the room types? I tried changing prices, post published date and vacancies, I'm thinking it could be sorted by post id, I just need a clue to let my partners know in what order they should submit the room types.
It's not working, I changed the code as directed and nothing happened, see the picts one is the live results and the other is the code inserted in the php directly in my hosting.
The idea is to have the rooms sorted by price (lowest to highest) the way booking, expedia and most travel website uses.
Hi
How can I order the room types by price (lowest to highest) under the Availability tab in every hotel page?
Hi,
At the moment that is not possible. We hope to implement this feature in the near future.
Thanks,
Best regards,
themeenergy support
Can you tell me what's the logical order the theme is using now to display the room types? I tried changing prices, post published date and vacancies, I'm thinking it could be sorted by post id, I just need a clue to let my partners know in what order they should submit the room types.
Hi,
Yes, the room types are ordered by ID.
If you go to single-accommodation.php you will find that the room types are obtained as follows:
If you wanted to sort them by price, you could edit the file, and look at these lines:
You could change them to:
By doing the above, you would have the room types listed in order by price.
Best regards,
themeenergy support
It's not working, I changed the code as directed and nothing happened, see the picts one is the live results and the other is the code inserted in the php directly in my hosting.
The idea is to have the rooms sorted by price (lowest to highest) the way booking, expedia and most travel website uses.
My bad,
Please change this:
to
Best regards,
themeenergy support
Working perfectly now thanks.