0
votes
0answers
24 views

Add custom prefix to search URL

I am using Wordpress to manage a site with both a static page structure and a blog under /blog. I've updated my permalinks to use the custom structure /blog/%postname%/ and all seems to be working ...
0
votes
1answer
30 views

Permalink / sub-template issue

I've got a WP page with many subpages with their own template. The main template includes them. Each element with its own template can be received with an id and an anchor that is linked to this idea, ...
0
votes
0answers
39 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
195 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
912 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. /** * ...
1
vote
2answers
3k 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
216 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
465 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
167 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
1answer
156 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
987 views

Search result permalink

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