wordpress国外模板搜索功能无法搜索中文
方法如下:首先打开wordpress的后台仪表盘。
我们在 插件 的二级菜单中选择 安装插件。
搜索 wp clean up options 。
安装排行第一的插件。
提示安装完成。
使用插件找到我们安装的插件,启用它。
会在设置菜单中看到它,打开插件。
显示了很多垃圾,就可以删除了。
wordpress网站搜索功能怎么实现
其实这个问题跟中文标签无法连接是一样的。
修改wp-includes/rewrite.php这是网上最常见的方法,原理是,让WordPress在对其他内容使用Permalink的时候,对tag不使用,而使用链接2的QueryString 模式发送中文编码:function get_tag_permastruct() {if (isset($this->tag_structure)) {return $this->tag_structure;}if (empty($this->permalink_structure)) { //-----this line need change------$this->tag_structure = '';return false;}把第5行改为if (!empty($this->permalink_structure)) {
转载请注明出处51数据库 » wordpress 搜索排除