跳到内容

WP Live Search

v0.9

Nick Haskins · 2015年6月15日 上架

A super light-weight live search plugin that utilizes the WP REST API.

正在使用
30+
评分
4.7 / 5
累计下载
7,619
最近更新
2015年6月25日
3 条评价需要 WordPress 3.5.1+已测试到 4.2.39

贡献者

截图

basic design
basic design

WP Live Search (beta) is a search plugin for WordPress that returns results as the user types for what they are looking. It currently supports posts, pages, post types, including multiple post types, and design modes.

This is very much a working prototype, so please log any issues you find on the Github repo below.
https://github.com/bearded-avenger/wp-live-search

Here’s some documentation.
http://bearded-avenger.github.io/wp-live-search/

Add the shortcode [wp_live_search] to a page or something. There’s a few shortcode attributes that you can use, and are as follows:

type=””
Your choices are posts or pages. Defaults to posts. You can also pass type,type to search multiple post types. For example type=”recipes,books”

multi=””
By default this is turned off. Set this to true only if you’re using multiple post types above.

placeholder=””
The text displayed in the input. Defaults to Search....

number=””
Total search result to return. Default is 20

excerpt=”true”
Show the excerpt along with the title and featured image (if set)

compact=”true”
Makes a tiny WP Live Search for use in header widgets and such

dropdown=”true”
Display search results as a drop-down instead of pushing down the content around it

results=””
The text displayed for the results. Defaults to entries found.

results_style=”inside”
Displays the “entries found” inside of the input area, useful for using in areas like header widgets where space is minimal.

target=””
An optional target UL parent to send the search results to. Example target="#someotherdiv".

Here are a couple examples:

Default Usage:
[wp_live_search]

Use in Header Widget:
[wp_live_search compact=”true” dropdown=”true” results=”found” results_style=”inside”]

Search through multiple post types:
[wp_live_search multi=”true” type=”posts,page”]

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums