Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Allow search through "TermMeta" Database Table › Reply To: Allow search through "TermMeta" Database Table
Hi,
That is not going to do it, it is only the visual option, the query needs to be implemented as well. I might have a possible solution, it appears to be working on my test servers. Please follow the instructions below:
1. Open up the wp-content\plugins\ajax-search-pro\includes\classes\search\class-asp-search-terms.php file on your server, and scroll to lines 186-188, which should be these:
[php]$add_select = apply_filters(‘asp_term_query_add_select’, ”);
$add_join = apply_filters(‘asp_term_query_add_join’, ”);
$add_where = apply_filters(‘asp_term_query_add_where’, ”);[/php]
..now, change those lines to this:
2. Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!
If everything goes well, the the term meta table should be searched as well.