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”>