Last active
April 10, 2020 13:41
-
-
Save djrmom/dcb9601aab1b6fc2e7325839061822e9 to your computer and use it in GitHub Desktop.
facetwp query for search template
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 | |
/** 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' ) | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment