我在类别上有自定义搜索表单category.php
具有以下代码的列表模板:
<?php $searchresults = site_url(\'/?p=1365\'); ?>
<form class="search-slide" id="search-slide" name="search-slide" action="<?php echo $searchresults; ?>" method="post">
<input type="text" name="s_name" id="s_name" size="30" value="" class="find s-name" placeholder="Name Lastname" tabindex="1" />
<input type="text" name="s_offer" id="" size="30" value="" class="find s-tag" placeholder="in research offer" tabindex="2" />
<input type="text" name="s_area" id="" size="30" value="" class="find s-obsz" placeholder="in Application area" tabindex="3" />
<input name="s_tags" id="tag-list" value="" tabindex="4" />
<input class="slideradio" type="checkbox" id="w01" name="w[]" value="w01" />
<label for="w01"><span></span>Faculty of Architecture</label>
<input class="slideradio" type="checkbox" id="w02" name="w[]" value="w02" />
<label for="w02"><span></span>Faculty of Civil Engineering</label>
<input class="slideradio" type="checkbox" id="w03" name="w[]" value="w03" />
<label for="w03"><span></span>Faculty of Chemistry</label>
<input class="slideradio" type="radio" id="adefault" name="s_sort" value="" checked="checked" tabindex="6"/>
<label for="adefault"><span></span>Default</label>
<input class="slideradio" type="radio" id="aasc" name="s_sort" value="" tabindex="7" />
<label for="adefault"><span></span>Sort A-Z</label>
<input class="slideradio" type="radio" id="adsc" name="s_sort" value="" tabindex="8" />
<label for="adefault"><span></span>Sort Z-A</label>
<button id="slide_search_btn" type="submit">Search</button>
</form>
我想把变量发送到另一个wordpress网站
search-result.php
(模板页在仪表板中添加和发布)。但当我点击
Search
按钮我得到错误404(我有关于命名的红色
name fields
但我觉得我的还好)。但当我直接在浏览器中输入页面时,我通常会得到页面。有人能告诉我如何解决这个问题吗?