Home › Forums › General Issues › List Ordering at Custom Field › Reply To: List Ordering at Custom Field
Hi @homax
On this page, you will find examples of sorting by a custom field:
http://www.advancedcustomfields.com/resources/getting-started/code-examples/
To orderby a custom field value, it is very simple but you will need to read up on it here:
http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
Also, these examples use the get_posts function, but you may need to use the pre_get_posts filter if you want to override the core query!
Cheers
E
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.