I have a contact form on my site. The next code <form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>"> doesn't allow me to get search results in 2 languages. When i search a word in English i get all ok, but when i try to find something in my second language, using WPML, i don't get anything. What should be the problem? I guess that , maybe i should change something in "action" from my form tag, but i'm not sure what. What could be the problem?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.