wordpress - Where can I echo the search SQL for a ?s=words type search? -
i trying debug search plugin, has worked before me on sites not working(returns 0 results) on current site. if see sql being performed, better idea of whats wrong. normal search box type search of posts , pages, etc.
the sql generated in get_posts() function in wp-includes/query.php. if link doesn't take right spot, search function if ( !empty($q['s']) ).
looks posts_search filter called after block, hook dump generated sql file (if echoing doesn't work).
Comments
Post a Comment