Sorting of attribute options for display

Hi Andrii,

in reference to a previous post 15273, the hivepress solution currently does not apply the sorting order to attribute option values as per their numeric order values.
Although this has been recognised as a ‘small issue on the Roadmap’, it results in the following display in the frontend:

As you can see, the attribute option values (e.g., “between 12pm and 4pm” and “between 8am and 12pm”) are not displaying in chronological order, even though they have been assigned appropriate Order values in the backend.

Since roadmap fixes can take time to be rolled out, I was wondering if your team could provide an interim solution or guidance on how to manually implement a fix. From what I can tell, this may simply require a ‘sort by’ statement in the relevant template or query.

Any advice or direction on where this could be adjusted would be greatly appreciated.

Hi,

Sorry for the inconvenience, we’ll try to fix this as soon as it’s possible.

If it’s urgent and you’re familiar with code customizations or have a developer for custom work, please check this function hivepress/includes/fields/class-select.php at master · hivepress/hivepress · GitHub It outputs the selected option labels, so it’s possible to add custom logic to rearrange the displayed list.

Hope this helps