Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
The method by which users find information on your WordPress site
1
vote
0
answers
68
views
Change Search url slug for each site in a multisite network
As per the title, how would you change the search url for different sites in a multisite network. eg:
testsite.co.uk/search
testsite.de/suchen
testsite.fr/recherche
I can change the search term for … /" ) . urlencode( $str ) );
exit();
}
}
add_action( 'template_redirect', 'change_search_url_rewrite',1 );
Having the search term change on a per site basis does not work though. …
0
votes
Accounting for search terms that may include a space, using SearchWP
By using the following I can modify the search query, so that it matches the product titles. … E.G if its "ABC 1" it will search for "ABC1"
function my_parse_searchwp_terms( $query, $engine ) {
$query = preg_replace( '/(?<=abc)(\s+)(? …
0
votes
1
answer
143
views
Accounting for search terms that may include a space, using SearchWP
As the title suggest I am having an issue with setting up the plugin SearchWP to correctly work with search terms (product names) that may, or may not, contain spaces. e.g. "ABC1" or "ABC 1". … I have tried the approach of a custom field of search synonyms for each product. Again that hasn't had the desired results either. …
1
vote
Accepted
Pretty Permalink for Search Queries Not Working
I was using:
$_GET['s'];
as opposed to:
get_query_var('s');
Hence the empty search results.
Hope this might help somebody in the future! …
1
vote
1
answer
616
views
Pretty Permalink for Search Queries Not Working
As the title suggests I am trying to create pretty permalinks for search queries, but unfortunately I cant get them to work. … add_rewrite_rule('^search/([^/]*)/$','?search=true&s=$matches[1]','top');
This doesn't work, although 'website.com/search/something' will go to the search page but not pass the var. …