Wordpress CPT list sorting (JetEngine / JetSmartFilters) -- 2
Budget: €30 – €250 EUR
IMPORTANT:
Write a custom bid - AI generated bids will be rejected.
DESCRIPTION:
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.
The runtime computed value is generated by custom code via Code Snippets using a shortcode.
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.
Write a custom bid - AI generated bids will be rejected.
DESCRIPTION:
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.
The runtime computed value is generated by custom code via Code Snippets using a shortcode.
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.
Related categories:
PHP
JavaScript
WordPress
CSS
HTML
Database Development
Web Development
Backend Development
Frontend Development
Elementor