0
votes
0answers
25 views

Search points to /search/?s=KEYWORD instead of /search/KEYWORD

I can access my search page and results correctly here /search/KEYWORD but when I click search it points to /search/?s=KEYWORD. I updated my permalinks in the admin.
0
votes
1answer
40 views

Colons in WordPress user search queries break search functionality [closed]

On one of my sites if a user types in 2:2 in the search box, they are taken to: example.com/search/2%3A2/ which doesn't find anything. But if I manually type in in the browser address bar ...
0
votes
1answer
120 views

encoded search terms with %20

<form class="search-form" action="<?php echo home_url( '/suche/' ); ?>" method="get"> <input type="text" name="s" class="s" value="<?php the_search_query(); ?>" /> this ...
1
vote
1answer
592 views

Custom permalink for search and pagination

@Chip Bennet helped me out in a previous question and posted his entire pagination function. This function works perfectly fine for me but I'd like to have custom permalinks in german. /** * ...
0
votes
2answers
2k views

paginate_links() don't properly work in search.php?

I'm using this in my search.php template … <div class="pagination"> <?php echo get_pagination_links(); ?> </div> And this is the function … function get_pagination_links() { ...
0
votes
1answer
137 views

custom naming of search permalink /search/

I found this snippet online … function search_url_rewrite_rule() { if ( is_search() && !empty($_GET['s'])) { wp_redirect(home_url("/search/") . urlencode(get_query_var('s'))); ...
0
votes
1answer
228 views

rewriting search-permalink with htaccess - search results are are “opened” automatically?

when typing "a" into my search field (/?s=a) I my search.php template is loaded and all results that match that letter are shown. If I add this to my .htacess … RewriteCond %{REQUEST_URI} ^/$ ...
1
vote
2answers
157 views

Different results between permalink and query var search

I'm running WordPress 3.3.2 with my own custom-built theme that has 4 custom post types. Currently, I'm looking for a way to replace the search link from example.com/blog/?s=findme with ...
0
votes
3answers
764 views

Passing url parameters with search form [closed]

I'm trying to let users have a filter option when they submit a search. My search form: <form class="searchform" method="get" action="http://www.example.com/"> <input ...
0
votes
1answer
120 views

Search results highlight breaks my read more link

I am attempting to add highlighting to my search results in the theme that I am coding. I found the way to do it on this thread: How to highlight search terms without plugin and it worked ...
6
votes
1answer
2k views

Pretty permalinks for search results with extra query var

I'd like to know how I can rewrite a search URL that also contains an extra query var into a pretty permalink using wp_redirect and the template_redirect hook. I have taken the code from the Nice ...
2
votes
2answers
798 views

Search result permalink

how to make permalink available for search result page /?s=one+two+ok to /search/one-two-ok/ thank