Title: Shortcode Search | WordPress Search Bar Shortcode Plugin
Author: Kulwant Agarwal
Published: <strong>2025 年 2 月 13 日</strong>
Last modified: 2025 年 2 月 13 日

---

搜索插件

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

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

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

# Shortcode Search | WordPress Search Bar Shortcode Plugin

 作者：[Kulwant Agarwal](https://profiles.wordpress.org/kulwantagarwal/)

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

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

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

## 描述

Shortcode Search is a simple plugin that lets users add a search bar anywhere on
their WordPress website using the shortcode [search].

With this plugin, you can easily insert a search form with customizable placeholder
text and button label. The plugin automatically renders a user-friendly search form
where users can type in their search queries.

### Usage

To display the search form, simply use the `[search]` shortcode. You can also customize
the placeholder text and button label by passing attributes.

Example:
 `[search placeholder=”Search for something…” button_text=”Go”]“`

This will display the search form with “Search for something…” as the placeholder
text and “Go” as the button text.

### Credits

 * Developed by kulwantagarwal.
 * WordPress core for plugin framework.

### License

This plugin is licensed under the GPL-2.0+ license.

## 安装

 1. Upload the `shortcode-search` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Use the shortcode [search] in any post, page, or widget area to display the search
    form.

## 常见问题

### How do I use the plugin?

Simply add the shortcode `[search]` wherever you want the search bar to appear. 
You can also customize the placeholder text and button label using the attributes`
placeholder` and `button_text`.

### Can I style the search form?

Yes! The plugin includes basic styles, but you can easily customize the appearance
by modifying the CSS or overriding it in your theme’s custom styles.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Shortcode Search | WordPress Search Bar Shortcode Plugin」是开源软件。 以下人员
对此插件做出了贡献。

贡献者

 *   [ Kulwant Agarwal ](https://profiles.wordpress.org/kulwantagarwal/)

[帮助将「Shortcode Search | WordPress Search Bar Shortcode Plugin」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/shortcode-search)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1 | Feb 13, 2025

 * FIxes minor issues with shortcode.

#### 1.0 | Feb 13, 2025

 * Initial release.
 * Added [search] shortcode to display a search bar anywhere on the site.
 * Customizable placeholder and button text.

## 额外信息

 *  版本 **1.1**
 *  最后更新：**1 年前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/shortcode-search/)
 * 标签
 * [search shortcode](https://cn.wordpress.org/plugins/tags/search-shortcode/)[shortcode finder](https://cn.wordpress.org/plugins/tags/shortcode-finder/)
 *  [高级视图](https://cn.wordpress.org/plugins/shortcode-search/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ Kulwant Agarwal ](https://profiles.wordpress.org/kulwantagarwal/)

## 支持

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

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