简体   繁体   English

使用Wordpress插件显示代码的Algolia搜索

[英]Algolia search with Wordpress plugin showing code

Using the Algolia wordpress plugin. 使用Algolia wordpress插件。 Only issue is when you commence searching via a letter or two it brings up some sort of page design meta/code. 唯一的问题是,当您通过一两个字母开始搜索时,它会显示某种页面设计的元数据/代码。

Demonstrated in this video here: https://www.opentest.co/share/6bb58c20893911e69225c7c933a8d325 在此视频中演示: https//www.opentest.co/share/6bb58c20893911e69225c7c933a8d325

Latest (4.6.1) Wordpress being used. 使用最新(4.6.1)的Wordpress。 Divi Theme (+ Child Theme) and Builder 3.0 being used. 正在使用Divi主题(+子主题)和Builder 3.0。

No cacheing plugin being used. 没有使用缓存插件。

The Divi theme has well-known issues when it comes to site search and results. Divi主题在网站搜索和结果方面存在众所周知的问题。 Divi uses short-codes for post formatting, and some search plugins do not execute the short-codes - like a web browser does - but present search results from the database. Divi使用短代码来进行帖子格式化,并且某些搜索插件不会像Web浏览器那样执行短代码,而是显示来自数据库的搜索结果。 So you will see unexecuted short-codes and other formatting coding in search results when using plugins that access the database for search results. 因此,当使用访问数据库以获取搜索结果的插件时,您将在搜索结果中看到未执行的短代码和其他格式编码。 This same issue occurs with other similar themes and many "page builder" plugins that also use short-codes for design and formatting. 其他类似主题和许多“页面构建器”插件也使用短代码进行设计和格式化,也会发生相同的问题。

The default WordPress search does not have this issue with Divi; 默认的WordPress搜索Divi不会出现此问题; but the default search engine does not provide results sorted by keyword, only by date, which is an issue when you want keyword relevancy in results, and/or live results, as with the Algolia plugin. 但是默认的搜索引擎不提供按关键字排序的结果,而仅按日期排序,这与Algolia插件一样,在您希望关键字与结果和/或实时结果相关时,这是一个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM