Option to Default to Underlying Query Sorting in Loop Grid Widget #23431
JennyPower
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
What problem is your feature request going to solve? Please describe.
In the current version of Elementor's loop grid widget, the ordering field provides various options for sorting but lacks the ability to default to the underlying query's sorting. This is limiting for developers who want to control the sorting using pre_get_posts or other methods and want the widget to respect that sorting.
The lack of an option to default to the underlying query's sorting forces developers to work around this limitation, complicating the development process.
Describe the solution you'd like
I propose adding an option in the ordering field of the loop grid widget to allow developers to choose "Default to Underlying Query" or similar, enabling the widget to adhere to the sorting defined elsewhere in the code.
This feature would enhance the flexibility and power of Elementor, aligning it more closely with common development practices and WordPress best practices. It would allow developers to more seamlessly integrate Elementor with custom sorting logic, resulting in a more cohesive and efficient development experience.
Please consider implementing this feature to further empower developers and make Elementor even more adaptable to diverse development needs.
Describe alternatives you've considered
The only option I can think of is to pass a query to the widget which is a duplication and not a sound solution.
Additional context
No response
All reactions