Home › Forums › General Issues › Alphabetical Query Posts via ACF Field? › Reply To: Alphabetical Query Posts via ACF Field?
Hi @jez
I think what you are looking for is to be able to sort posts using the custom field name as it would translate to sorting by the first letter.
Here is an article that may help you with that.
https://www.advancedcustomfields.com/resources/orde-posts-by-custom-fields/
In order to group them by first letter, you would have to store them in a multidimensional array then use custom control structures to note the change in the start letter.
I hope this helps.
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.