the search does not work in my wordpress blog. each time i am searching with a keyword, it turns to zero result, however i know the word exists a thousand times in my blog.
The structure :
<ol>
<li>i have my own theme based on twentyeleven (almost the same).</li>
<li>the search is placed into the sidebar, and i use search widget to show it on the front end.</li>
<li>the form is in my searchform.php, the code :
</li>
<li>the output should be shown on a page which is generated by the search.php file.</li>
</ol>
I guess the redirection (an url) should have the problem because when i submit the search, the zero result is shown on my error page instead of the search page. The final page where it redirects me : <a href="http://webdesign.igorlaszlo.com/blog/undefined" rel="nofollow">http://webdesign.igorlaszlo.com/blog/undefined</a>...
Maybe the problem comes from the fact that my wp blog is installed in a subdomaine ? : <a href="http://webdesign.igorlaszlo.com/blog/" rel="nofollow">http://webdesign.igorlaszlo.com/blog/</a>
Normally i do not have search problem, the system works well because : i installed Search Everything wp plugin to hope that it helps. It installs a trial search in the admin side and when i search with it, it works, it redirects me to the home page (posts list) and even highlights the words. The problem is that this plugin obliged to use the default wp search form and it does not work on the front end, even with this plugin...
Can you please give me ideas what should i do that it works correctly.
The structure :
<ol>
<li>i have my own theme based on twentyeleven (almost the same).</li>
<li>the search is placed into the sidebar, and i use search widget to show it on the front end.</li>
<li>the form is in my searchform.php, the code :
Code:
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label for="s" class="assistive-text"><?php _e( 'Search', 'ilwebdesign' ); ?></label>
<input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search', 'ilwebdesign' ); ?>" />
<input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'ilwebdesign' ); ?>" />
</form>
<li>the output should be shown on a page which is generated by the search.php file.</li>
</ol>
I guess the redirection (an url) should have the problem because when i submit the search, the zero result is shown on my error page instead of the search page. The final page where it redirects me : <a href="http://webdesign.igorlaszlo.com/blog/undefined" rel="nofollow">http://webdesign.igorlaszlo.com/blog/undefined</a>...
Maybe the problem comes from the fact that my wp blog is installed in a subdomaine ? : <a href="http://webdesign.igorlaszlo.com/blog/" rel="nofollow">http://webdesign.igorlaszlo.com/blog/</a>
Normally i do not have search problem, the system works well because : i installed Search Everything wp plugin to hope that it helps. It installs a trial search in the admin side and when i search with it, it works, it redirects me to the home page (posts list) and even highlights the words. The problem is that this plugin obliged to use the default wp search form and it does not work on the front end, even with this plugin...
Can you please give me ideas what should i do that it works correctly.