You can resolve this.
I finally realized I was using brackets instead of parens.
*face plant*
I found the solution. Apparently some time ago I had installed Post Types Order plug-in and it was active. I deactivated it a Wala — the order by works now! Ah, I just love it when I realize how stupid I am! LOL!
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
Well, thanks for figuring it out and sharing your solution! I’d give you a kudos if I could.
Well, I guess I’m a dumbass, too 🙂 LOL! Thanks for letting me know that! It took care of my problem — how did I miss it?
Hi. I’m struggling with this problem, too. Did you ever get a resolution?