[wp-hackers] Wp_Query and wildcards

Lox lox.dev at knc.nc
Wed Aug 18 16:21:59 UTC 2010


Hello,

I alter a wp_query where using posts_where. I need to use the wildcard
caracter, like so:

$where .= " AND field LIKE '%" . esc_sql($query_vars['dip']) ."%'";
>

But it seems wp_quey deletes the wildcard caracter... How can I solve that?
-- 
Lox
lox.dev at knc.nc111


More information about the wp-hackers mailing list