7
usr--2ndry
290d

How hard can it be to sort content stored in a relational database by a custom meta parameter and restrict the results to a certain language using a very popular content management system in 2023?

After wasting several hours trying to get my head around reference documents, 20 years of anecdotal StackExchange + WordPress.org discussion and ACF + Polylang support, and trying to debug my code, I will now either write my own SQL query or put the meta query results in a hashed object to sort it using my own PHP code.

What time is it now? 2003?

Comments
  • 2
    Thats the issue with most tooling it works. Until it doesnt. And then you gonna have a bad time and end up having to engineer around it.
  • 2
    Writing your own SQL might be the best option in this scenario.
Add Comment