Timeline for How to search for meta_query LIKE or tax_query LIKE and grab these posts on search results?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 29, 2017 at 2:17 | comment | added | 86Dev | INNER JOIN is better if you are SURE meta exists. If not the query will return nothing, even if a term matches the search string. | |
Oct 28, 2017 at 19:16 | comment | added | Solomon Closson | I suppose an INNER JOIN on the postmeta table is probably more optimized, and shouldn't hurt any, since all posts have postmeta. | |
Oct 28, 2017 at 19:13 | comment | added | Solomon Closson |
Thanks, that's the only way to do it right. The post_clauses filter is a total mess, and was trying with no luck to get taxonomy and meta working together somehow in there. could only really get the meta keys working nicely, but the taxonomy name is much more involved.
|
|
Oct 28, 2017 at 19:11 | vote | accept | Solomon Closson | ||
Oct 28, 2017 at 11:51 | history | answered | 86Dev | CC BY-SA 3.0 |