Home › Forums › Front-end Issues › Order By Not Working › Reply To: Order By Not Working
Actually, I think what is happening is that just one record is moving to the top of the list. For example, in the records for the custom post type, I have the following first names in order of most recent first:
Regina, Anne, Lori, Laura.
If I do not do the sort in the get_posts query, they are sorted as shown above; Regina is the first record, as that is the most recent one I added.
If I do the sort in the get_posts query, Anne is moved to the top of the list and the remainder are in the order they were entered with most recent first:
Anne, Regina, Lori, Laura
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.