I created 2 CPT:
Company
Documents
I created a Relationship field, so that I can associate the documents to the company.
I have a single post template for my Company. I am using a Bricks Query Loop referencing the relationship field to display the corresponding documents on the single post template. How can I order my documents based on a custom field? In this case the Publication date of the document.
How do you build a query to get the documents in “Brick”, that is a question for the builder you are using. All I can do is point you to the WP_Query doc.
Bricks builder has a Query Loop interface. However, for queries based on Relationships or Repeaters there are no options for Order BY etc… I guess I will have to bypass Bricks and create the query myself. Thank you for taking the time to respond to me.