NO BUG: Sorting query by ACF text field not working

Browser: Edge 141
OS: Windows
URL: Bibliografie – Arhiva Colaborativa de Arta
Video: Short screen recording that illustrates this issue (free tool: jam.dev)

Hello,

I’m trying to order a query loop by an ACF text field, but the order by doesn’t seem to be working.

I have a custom Post that has attached a text field autor

When I add the field as a metadata and try to sort using it, the order is random, or is lost on page refresh

And this is the behavior on refresh: https://jam.dev/c/679b980f-f1a3-46a2-9825-a796d93ccdef

If there are any other details that I can provide, let me know.

I think I’ve figured out what I was doing wrong.

I was shadowing the post Author field so it was normal that the field that I added was not used.

Feel free to close this as it works now :sweat_smile: