This video was very helpful and exactly what I needed. However, I am having an issue when using a relationship in the query loop. There are no sorting options, and I can not find any way to sort the output. Is there a way to sort when using the relationship in a query loop? Any help will be greatly appreciated. Thank you!
Sorting by date usually takes the published date from post. But for such a course listing the main sort order (from visitor perspective) is course start date. Is that possible with Bricks and Meta Box? Or is coding needed?
In the settings of Query Loop, you can set: - Type: Posts - Post type: (e.g. Courses) - Order by: Meta Value - Order meta key: the field ID you want to reorder (e.g. start_date) - Order: you can choose 'Ascending' or 'Descending' as you want Please try it.
This video was very helpful and exactly what I needed. However, I am having an issue when using a relationship in the query loop. There are no sorting options, and I can not find any way to sort the output. Is there a way to sort when using the relationship in a query loop? Any help will be greatly appreciated. Thank you!
Sorry for the late reply. We spent some days finding an answer to your question. But until now, there has been no way to do it with Bricks.
Great video. One question: How do you sort the end result. Say you want them listed alphabetically, or by date?
you can choose Order By in the Query option
Sorting by date usually takes the published date from post. But for such a course listing the main sort order (from visitor perspective) is course start date. Is that possible with Bricks and Meta Box? Or is coding needed?
In the settings of Query Loop, you can set:
- Type: Posts
- Post type: (e.g. Courses)
- Order by: Meta Value
- Order meta key: the field ID you want to reorder (e.g. start_date)
- Order: you can choose 'Ascending' or 'Descending' as you want
Please try it.