generateblocks icon indicating copy to clipboard operation
generateblocks copied to clipboard

Query Loop - Add ability to order posts by custom field values

Open brentwilson-clariio opened this issue 3 years ago • 1 comments

Use Case: Events in the query loop have a custom field for the event date. It would be good to be able to order them by that event date in ascending or descending order. Currently, it is possible to order them according to the date the post was created or modified. But that isn't ideal in this use case as that would mean posts would need to be created or modified in the same order as their event dates. Setting the post date to match the event date would mean that, by default, the post wouldn't be visible until the event date - also not ideal in a listing of upcoming events.

brentwilson-clariio avatar May 17 '22 19:05 brentwilson-clariio

@rockyviewweb we didn't added order by post meta cause the REST API does not support it by default. We have plans to enable few more options to the query loop that are not currently enabled on the API.

JeanPaiva avatar May 18 '22 16:05 JeanPaiva

Will be handled by https://github.com/tomusborne/generateblocks-pro/issues/126

JeanPaiva avatar Jan 11 '23 16:01 JeanPaiva