Wordpress CPT list sorting (JetEngine / JetSmartFilters)

Заказчик: AI | Опубликовано: 07.10.2025

I have a Wordpress Elementor website that's operating in the energy business. Currently I'm working on a new feature to list and show different energy offers from different energy companies. This is done by using CPTs. For this, I'm using JetEngine and JetSmartFilters. See: https://findelpriser.dk/elselskab/altid-energi-copy/ My issue is: There is a runtime computed value shown on each CPT (a price per kWh based on the users filter input and CPT meta values). However, I cannot figure out how to make a sorting option to sort based on the computed value. Goal: - Make a sorting option based on the computed price (low to high) - Sorting should be done server side so paging still works correctly - All existing and new sorting options should still work as intended - All filters should still work as intended - All CPT UI and computed value should still work as intended Requirements: - All changes should persist throughout plugin/theme updates. That means NO custom CODE IN FUNCTIONS.PHP OR THEME FILES. - All changes should preferably be made: - - Directly within the UI (JetEngine / JetSmartFilters) - - Directly on the page (maybe using HTML widgets) - JetEngine / JetSmartFilters is NOT a requirement. If you know how to make a working solution with other plugins, I'm open minded.