Continue reading Custom post type filtering produces empty results

Custom post type filtering produces empty results

If clicking “Filter” in a custom post type admin view comes up with an empty results with the first click and proper results on the second click when Relevanssi is installed and enabled in admin, the solution is to add these functions to your functions.php: add_filter(’relevanssi_admin_search_ok’, ‘relevanssi_disable_filter_admin’, 10, 2); function relevanssi_disable_filter_admin($ok, $query) { if (empty($query->query_vars[’s’])…

Read more Custom post type filtering produces empty results 2 Comments on Custom post type filtering produces empty results
Continue reading Using Relevanssi without a search term

Using Relevanssi without a search term

Version 1.7.3 introduces the possibility to use Relevanssi without a search term. This is useful when you have extra query arguments that can be used to narrow the search, but which would be useful without a search term present. This was originally implented for a restaurant search, where the users can search for restaurants based…

Read more Using Relevanssi without a search term 42 Comments on Using Relevanssi without a search term