Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter MacGyver_

    (@macgyver_)

    Or is it possible to create a query filter and JOIN a table (INNER join) ??

    Moderator bcworkz

    (@bcworkz)

    You can hook the filter ‘posts_search’, I’m not sure how use it though. Alternately, you can either replace your theme’s searchform.php, or put your’s in a child theme, or hook the filter ‘get_search_form’, where your new search form action points to your own search handler page.

    There are a few extended search plugins. You could peek at their code for other ideas, or just use one of the plugins instead of rolling your own.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Replace standard WordPress search by custom SQL query’ is closed to new replies.