Sorting Posts by Advanced Custom Fields or Meta Box Field Values in Breakdance
This guide explains how to sort your list of posts by values from Advanced Custom Fields (ACF) or Meta Box fields in Breakdance.
Ordering Posts by A Custom Field
Order By ACF Field
- Ensure you have your Post Loop Builder or Post List element ready, displaying your list of posts.
- Select your Post Loop Builder or Post List element.
- Go to the properties panel and click “Edit Query” under the Query section.
- In the ‘Order’ section, click on the ‘Order by’ dropdown menu and choose ‘ACF.’
- Choose an appropriate order from the ‘Order’ dropdown, e.g. ascending or descending.
- Apply the query changes.
Order By Meta Box Field
- Ensure you have your Post Loop Builder or Post List element ready, displaying your list of posts.
- Select your Post Loop Builder or Post List element.
- Go to the properties panel and click “Edit Query” under the Query section.
- In the ‘Order’ section, click on the ‘Order by’ dropdown menu and choose ‘Meta Box.’
- Choose an appropriate order from the ‘Order’ dropdown, e.g. ascending or descending.
- Apply the query changes.
Additional Notes
Sorting your posts by Advanced Custom Fields or Meta Box field values is an effective way to organize and display content based on specific criteria, enhancing the user experience on your site. Remember, you can always modify the query settings in Breakdance to suit your specific needs and preferences.