Orderby not working
-
Hi,
I have again a problem with finding the correct syntax for ordering the list of pods.
I have a field in my pod called “monat-jahr”, which is of type date. I want the list of pods sorted by this field.
I am using the Gutenberg Block for the output on the page. So in the field “Order by”, I tried the following options:
monat-jahr DESC t.monat-jahr DESC DATE(monat-jahr.meta_value) DESCNo matter what I try, the output is:
Pods Embed Error: ORDER BY contains SQL that is not allowed.
I then figured that I get the same error, even if I enter “t.post_title ASC” or “rand()” into that field. The output will only be displayed, when I leave the field blank (and then it is sorted by Post-Title, which I clearly do not want.
What am I doing wrong?
Thanks,
Astrid
The topic ‘Orderby not working’ is closed to new replies.