Timeline for WP_Query using meta_query with LIKE doesn't return what it should
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 7, 2015 at 15:15 | comment | added | s_ha_dum | Interesting. I don't see that effect | |
Nov 7, 2015 at 14:55 | comment | added | John Doerthy |
Hmm it seems to be something with wordpress escaping the string. E.g. If i put the whole url int othe query the result is this: '%http://bestafricanvideos.com/videos\\_top\\_10.xml%' )
|
|
Nov 7, 2015 at 14:40 | comment | added | s_ha_dum |
That LIKE query will be a wildcard query-- %searchterm% -- so it should match any of the strings you provided as samples. Exactly where in the code does is "return nothing"? I assume you've debugged by, for example, checking var_dump($the_query->request); ?
|
|
Nov 7, 2015 at 14:24 | history | asked | John Doerthy | CC BY-SA 3.0 |