facetwp query for search template

djrmom

{{gist file=”sql.php” lang=”php”}}
<?php
/** use query in advanced mode https://d.pr/i/FOJSwM for facetwp in default WP search page **/
return [
“post_type” => “any”,
“post_status” => [
“publish”
],
“posts_per_page” => get_option( ‘posts_per_page’ ),
“s” => get_query_var( ‘s’ )
];
{{/gist}}