Change output URL Search module

Use action = ‘website/search’ to get the query appended… Ideally your form would look like this… <form action=”website/search”> <input type=”text” name=”filter” /> <input type=”submit”> </form> Then you can grab filter to interact with WordPress Query and display result. Hope this helps.

$_GET value is losing it’s space

It turns out it was the WPML redirection that is removing the spaces from my input. To fix it, I’ve added the language code in the form action. <form action=”/<?php echo ICL_LANGUAGE_CODE; ?>/” method=”get” id=”searchform”>

Search result page as a new page

You can use custom template for search page: <?php get_header(); ?> <section id=”primary” class=”content-area”> <div id=”content” class=”site-content” role=”main”> <?php if ( have_posts() ) : ?> <header class=”page-header”> <h1 class=”page-title”><?php printf( __( ‘Search Results for: %s’, ‘shape’ ), ‘<span>’ . get_search_query() . ‘</span>’ ); ?></h1> </header><!– .page-header –> <?php shape_content_nav( ‘nav-above’ ); ?> <?php /* Start … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)