Have all post types searchable via Ajax, but not sitewide search
-
I’d like to have our default site search only search post types that are set as
"exclude_from_search" => false
, but for Ajax requests that search posts via WP_Query and relevanssi_do_query() I’d like all post types searchable. What is the most efficient way of accomplishing this? I can determine which post types are excluded from search, but I’m just not sure which Relevanssi filters are best to use here. Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Have all post types searchable via Ajax, but not sitewide search’ is closed to new replies.