I’m trying to expand the scope of the default WP search algorithm. What am I doing wrong?
Add this temporarily to your functions.php. It will break things but you can see the WHERE clause. Be sure to remove it because things won’t work right if you leave it there. function dump_where($w){ var_dump($w); } add_filter(‘posts_where’,’dump_where’); The first thing you should notice is that the % signs get escaped. Remove those and WordPress will … Read more