如何实现WordPress CMS的搜索功能?

如何实现WordPress CMS的搜索功能?,wordpress,search,content-management-system,Wordpress,Search,Content Management System,我需要在我目前正在开发的WordPress CMS网站中加入一个“搜索”功能,并希望将此功能/插件附加到以下代码中,但不确定如何在WordPress中实现此功能,即: <div id="search_box"> <form method="get" action="/search" id="form"> <input name="white_box" type="text" clas

我需要在我目前正在开发的WordPress CMS网站中加入一个“搜索”功能,并希望将此功能/插件附加到以下代码中,但不确定如何在WordPress中实现此功能,即:

            <div id="search_box">
              <form method="get" action="/search" id="form">
                <input name="white_box" type="text" class="search" value="Search site" size="19" maxlength="80" id="white_box" onfocus="if (this.value=='Search site') this.value = ''"/>
                <input name="submit" type="image" class="submit" value="submit" src="images/search_btn.jpg" />
              </form>
            </div>


我基本上想在我的网站上加入一个“搜索”功能。

这是一个非常基本的WordPress搜索表单。查看表单操作URL中的差异

<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
   <input type="text" size="14" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" class="s" />
   <input type="submit" id="searchsubmit" value="<?php _e('GO'); ?>" />
</form>

这是一个非常基本的WordPress搜索表单。查看表单操作URL中的差异

<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
   <input type="text" size="14" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" class="s" />
   <input type="submit" id="searchsubmit" value="<?php _e('GO'); ?>" />
</form>

扁桃体根据您的需要,您可以使用以下任意一种随时可用的WordPress插件

使用Relevanssi插件实现多语言支持

使用WPSearch进行行为良好的自定义搜索

对所有类型的内容搜索使用“搜索一切”

@扁桃体根据您的需要,您可以使用以下任意一种随时可用的WordPress插件

使用Relevanssi插件实现多语言支持

使用WPSearch进行行为良好的自定义搜索

对所有类型的内容搜索使用“搜索一切”