I ended up querying through php.
the good thing though is that you can just use the Query code from the Query block,
you just need to inform the key using the ACF field you want the Query to be sorted by.
In the meantime @Louis that would be maybe a good idea if we could edit the Query code in order to fix these kind of issues until the Query block works fully…
you can’t edit the code, that is what I say in my post, telling Louis it could be good if we actually could to fix this kind of situations.
I was talking of creating a php snippet based on the Query code you got from the Query block (that same one you pasted in your previous message).
It depends what you need to display and how complex it is really,
I needed it to make a list of events displayed by dates like a resume style, so it wasn’t too hard to hand code as the layout was pretty simple really, just some text with links and some basic formatting.
Just looking at this and I’m not quite sure I understand why you mark this as a bug.
The way you have set it up, you are asking the query to use the current ACF field value of the post/page the query is published on to order the query (that’s what dynamic fields are for).
If you want to order by the ACF field of every post available inside the query, you’ll want to use the simple static name of the ACF field… No need for dynamic data here.
You are right @Louis
finally go it working, so just moved it from Bugs to General, sorry!
I believe understanding the logic is not that easy at first…
Thank you for your patience and your help!
so @Jonas
it is actually easy
in the Query Block
when editing the Query
in Order
choose
Order by: Numeric Meta Value
and set as Key the name of your ACF field
Unbelievable! I just finished changing all the dates of my posts so they are in the correct order
Very awesome! I already tried it and it works beautifully!