Something weird happens on my website:
I'm using SpecialPages and Search to display news on the main page. I also want to have a search form in my template.
The code I use to call news:
The code I use to call search form:
And I do have "search" page, where I expect to see search results with this code:
But for some reason, when I try search "something", for example, it states in the address bar:
http://.../?words=something&search=Найти
instead of:
http://.../search/?words=something&search=Найти
So, it does not redirect to the relevant page, and the results are shown instead of news. I'm using latest plugins, and cannot figure out what is causing the problem..
I'm using SpecialPages and Search to display news on the main page. I also want to have a search form in my template.
The code I use to call news:
Code:
<?php get_i18n_search_results(array('tags'=>'news', 'DATE_FORMAT'=>'%d %B, %Y', 'max'=>5, 'i18n'=>0, 'lang'=>'ru', 'numWords'=>'1p', 'order'=>'created', 'showPaging'=>1, 'HEADER'=>'')); ?>
The code I use to call search form:
Code:
<?php get_i18n_search_form (array('slug'=>'search', 'showTags'=>0, 'minTagSize'=>90, 'maxTagSize'=>200, 'GO'=>'Найти', 'PLACEHOLDER'=>'Поиск по сайту')); ?>
Code:
(% searchform %)
(% searchresults %)
But for some reason, when I try search "something", for example, it states in the address bar:
http://.../?words=something&search=Найти
instead of:
http://.../search/?words=something&search=Найти
So, it does not redirect to the relevant page, and the results are shown instead of news. I'm using latest plugins, and cannot figure out what is causing the problem..