Use the searchwp_term_archive_enabled filter in the SearchWP Term Archive Priority Extension to specify which supplemental search engines should include term archive pages at the top of search results
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function my_maybe_include_term_archive( $include, $engine, $terms ) { | |
// only have term archives included for supplemental search engine with name 'supplemental' | |
return ( $engine == 'supplemental' ) ? true : false; | |
} | |
add_filter( 'searchwp_term_archive_enabled', 'my_maybe_include_term_archive', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment