Title: Simple Ajax Search
Author: pablocianes
Published: <strong>2018 年 6 月 21 日</strong>
Last modified: 2019 年 11 月 16 日

---

搜索插件

![](https://ps.w.org/simple-ajax-search/assets/banner-772x250.png?rev=1970146)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/simple-ajax-search/assets/icon-256x256.png?rev=1970146)

# Simple Ajax Search

 作者：[pablocianes](https://profiles.wordpress.org/pablocianes/)

[下载](https://downloads.wordpress.org/plugin/simple-ajax-search.zip)

 * [详情](https://cn.wordpress.org/plugins/simple-ajax-search/#description)
 * [评价](https://cn.wordpress.org/plugins/simple-ajax-search/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/simple-ajax-search/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/simple-ajax-search/#developers)

 [支持](https://wordpress.org/support/plugin/simple-ajax-search/)

## 描述

With this plugin you can create very easily a dynamic ajax search engine of your
blog.

For setup this search engine use the followings `[shortcodes]`:

### [sas-input]

Write this shortcode where you want the input components for the dynamic search,
and you get:
 * One input field where write words to search into the blog with WordPress
engine. * Several categories to filter the search depending what you checked. By
default all checked.

If you want you have some attributes to customize this shortcode:
 * `[sas-input
blank="true"]` if you want to open in new window each link of the results. It’s 
false by default. * `[sas-input dashicons="dashicons-admin-post"]` this is an example
to change the icon of each link. * `[sas-input headings="#29AAE3"]` this is the 
color by default for headings, but you can put here what you want. * `[sas-input
checked="#F8931F"]` this is the color by default for checked categories to filter
the search. * `[sas-input unchecked="#ccc"]` this is the color by default for unchecked
categories to filter the search. * `[sas-input not_found="Sorry but there are no
results for your search."]` put here the text you want to show when there are no
results.

Also you can change the placeholder of the input field with the content of the shortcode.
This is the value by default:
 * `[sas-input]Write here your search...[/sas-input]`

An example: `[sas-input blank="true" dashicons="dashicons-welcome-write-blog" headings
="#ccc"]Write here...[/sas-input]`

Note: [Code of dashicons](https://developer.wordpress.org/resource/dashicons)

### [sas-result]

With this one the plugin show the output of the search in real time with the ajax
engine. You can see the structure of this in the screenshots.

You don’t need put for this shortcode any attribute, but could be you want to add
some aditional css for the best integration with your theme.

**In summary** just put **`[sas-input]`** where you want the input for the search,
and put **`[sas-result]`** where you want the results. You will usually put them
together, but you can decide how, like use a conditional widget into a sidebar for
the first one.

### Feedback and support

I would be happy to receive your feedback to improve this plugin.
 Please let me
know through [support forums](https://wordpress.org/support/plugin/simple-ajax-search)
if you like it and please be sure to [leave a review.](https://wordpress.org/support/plugin/simple-ajax-search/reviews/#new-post).

Also you can contact me on my personal page [Pablo Cianes](https://pablocianes.com/)
or even visit [Github of Simple Ajax Search](https://github.com/PCianes/simple-ajax-search)
where you can find all the development code of this plugin.

I hope it is useful for you and look forward to reading your reviews! 😉 Thanks!

## 屏幕截图

 * [[
 * Both shortcodes together in the same page.
 * [[
 * One shortcode in conditional widget and the other one into a page.

## 安装

 1. Upload the plugin files to the **`/wp-content/plugins/`** directory, or into admin
    area of WordPress visit **`Plugins -> Add New`** and search **`Simple ajax search`**.
 2. Install & Activate the plugin through the **`Plugins' page`** in WordPress.
 3. After the plugin is activated you can use the shortcodes **`[sas-input]` & `[sas-
    result]`** in the same page or for example the first one in a condicitional widget
    in a sidebar an the other one inside one page for show the results.

## 常见问题

  What can I do with this plugin?

You can create very easily a dynamic ajax search engine of your blog. Just use the[
shortcodes] of this plugin.

  How do I setup this plugin?

Just put **`[sas-input]`** where you want the input for the search, and put **`[
sas-result]`** where you want the results. You will usually put them together, but
you can decide how, like use a conditional widget into a sidebar for the first one.

## 评价

![](https://secure.gravatar.com/avatar/58aa3fad67b1f7454dd16ad6acf7a85d800decbba2e31aef27283743af89bb70?
s=60&d=retro&r=g)

### 󠀁[Perfect!](https://wordpress.org/support/topic/perfect-6378/)󠁿

 [Ruben Garcia](https://profiles.wordpress.org/rubengc/) 2019 年 9 月 5 日 1 回复

I always was needed to build a similar functionality provided by this plugin by 
myself on all my installs But now SumaPress did the trick to get it in a elegant
and easy-to-use way Keep up the good work!

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/simple-ajax-search/reviews/)

## 贡献者及开发者

「Simple Ajax Search」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ pablocianes ](https://profiles.wordpress.org/pablocianes/)
 *   [ sumapress ](https://profiles.wordpress.org/sumapress/)

「Simple Ajax Search」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/simple-ajax-search/contributors)
为本插件所做的贡献。

[帮助将「Simple Ajax Search」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-ajax-search)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/simple-ajax-search/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/simple-ajax-search/)，或通过[RSS](https://plugins.trac.wordpress.org/log/simple-ajax-search/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/simple-ajax-search/)。

## 更新日志

#### 1.0.1

 * Fix notice.

#### 1.0.0

 * First publicly available version.

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**6 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.6 或更高版本 **
 *  已测试的最高版本为 **5.3.21**
 *  PHP 版本 ** 5.2.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-ajax-search/) 、 [Spanish (Chile)](https://cl.wordpress.org/plugins/simple-ajax-search/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/simple-ajax-search/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/simple-ajax-search)
 * 标签
 * [ajax](https://cn.wordpress.org/plugins/tags/ajax/)[blog](https://cn.wordpress.org/plugins/tags/blog/)
   [search](https://cn.wordpress.org/plugins/tags/search/)[search engine](https://cn.wordpress.org/plugins/tags/search-engine/)
   [seeker](https://cn.wordpress.org/plugins/tags/seeker/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-ajax-search/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/simple-ajax-search/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/simple-ajax-search/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/simple-ajax-search/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/simple-ajax-search/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/simple-ajax-search/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/simple-ajax-search/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/simple-ajax-search/reviews/)

## 贡献者

 *   [ pablocianes ](https://profiles.wordpress.org/pablocianes/)
 *   [ sumapress ](https://profiles.wordpress.org/sumapress/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/simple-ajax-search/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://pablocianes.com)