Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • You need to assign _start_at as the array key for one of the arrays in your meta_query array. That's how we sort by a specific meta query clause. Commented Jul 19, 2022 at 9:22
  • I try to do this : '_start_at' => array('key'.... for the first and for the second array of meta_query array but it does not change anything... Commented Jul 19, 2022 at 11:35
  • What is the format of the start_at meta value? Can you give some sample values? Commented Jul 19, 2022 at 11:53
  • I added an example in my first message.Thanks a lot for your help Commented Jul 19, 2022 at 12:12
  • Well, I suggest you to change the format to a standard MySQL date format like Y-m-d H:i:s. Because otherwise, sorting the values won't be easy. Did you use a plugin to add the meta; if so, what plugin? Commented Jul 19, 2022 at 12:15