I want to create search form but when I search something nothing happen and this is the code: index.php:
<div class="tech-btm">
<?php get_search_form();?>
</div>
searchform:
<form role="search" method="get" id="searchform" action="<?php echo home_url('/')?>">
<div><label class="screen-reader-text" for="s">Search for:</label>
<input type="text" value="" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" />
</div>
</form>
what is the problem? Is there anything wrong?
I want to create search form but when I search something nothing happen and this is the code: index.php:
<div class="tech-btm">
<?php get_search_form();?>
</div>
searchform:
<form role="search" method="get" id="searchform" action="<?php echo home_url('/')?>">
<div><label class="screen-reader-text" for="s">Search for:</label>
<input type="text" value="" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" />
</div>
</form>
what is the problem? Is there anything wrong?
Share Improve this question asked Jun 6, 2020 at 12:16 hadishadis 212 bronze badges1 Answer
Reset to default 0Did you also put code in index.php to actually display the search results?
https://wordpress/support/article/creating-a-search-page/
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742362384a4429642.html
评论列表(0条)