Skip to main content

Timeline for meta_query compare > not working

Current License: CC BY-SA 4.0

4 events
when toggle format what by license comment
Aug 27, 2018 at 22:18 comment added Tom J Nowell hmm in that case I would cast suspicion on the date clause, you need to be able to tell WP that it's a date/number not a string, and to treat it as such. Additionally you location clause is just a key, with no values or comparisons. Note that a location taxonomy and the post publish date would both be significantly faster by orders of magnitude. You can use pre_get_posts so that all events regardless of publish date are shown, rather than just those in the past
Aug 27, 2018 at 17:17 comment added joakland I came across that as a method for dealing with associative arrays in meta queries here: wordpress.stackexchange.com/questions/246355/…. Do you think this is the source of the problem? It doesn't seem to be.
Aug 25, 2018 at 0:28 comment added Tom J Nowell I've never seen the date_clause and location_clause syntax before, and I can find no record of it in any of the docs, are you using a custom query modification plugin of some sort? They are definitely not standard WP core options, and aren't listed in the WP_Query documentation
Aug 24, 2018 at 23:52 history asked joakland CC BY-SA 4.0