[wp-hackers] Wp_Query and wildcards
wp at andrewnacin.com
Thu Aug 19 19:04:57 UTC 2010
On Thu, Aug 19, 2010 at 1:27 PM, Lox <lox.dev at knc.nc> wrote:
> 2010/8/19 John Blackbourn <johnbillion+wp at gmail.com<johnbillion%2Bwp at gmail.com>
> <johnbillion%2Bwp at gmail.com <johnbillion%252Bwp at gmail.com>>
> > Off the top of my head, you need to escape percent signs with another
> > percent sign: %%.
> Nope it was my mistake. It works.
You should use like_escape(), in case your search has % or _ in it, as those
need to be escaped.
More information about the wp-hackers