Skip to content

Instantly share code, notes, and snippets.

@BrElio
BrElio / search-results.php
Created February 25, 2022 14:46 — forked from jchristopher/search-results.php
Output SearchWP Live Ajax Search results grouped by Category taxonomy term
<?php
/**
* Search results are contained within a div.searchwp-live-search-results
* which you can style accordingly as you would any other element on your site
*
* Some base styles are output in wp_footer that do nothing but position the
* results container and apply a default transition, you can disable that by
* adding the following to your theme's functions.php:
*
* add_filter( 'searchwp_live_search_base_styles', '__return_false' );