Title: Solo
Author: David Artiss
Published: <strong>2020 年 9 月 25 日</strong>
Last modified: 2026 年 8 月 20 日

---

搜索插件

![](https://ps.w.org/solo-search/assets/icon.svg?rev=3027752)

# Solo

 作者：[David Artiss](https://profiles.wordpress.org/dartiss/)

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

[实时预览](https://cn.wordpress.org/plugins/solo-search/?preview=1)

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

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

## 描述

You know when you search for something on a site and it finds just one result? You
then have to click into it to display it. That’s annoying. It’s also adding an extra
page load which is not necessary.

And what about if you search for an exact match for a title and, well, it serves
it up along with a number of other possible results. Hey, why didn’t you just show
me the one that I typed the name of in exactly? Well, you can do that too. Cool,
eh?

This plugin simply removes this middle step – if your search returns one result 
or you type in the name of a title, it will be shown in all its post/page (delete
as appropriate) glory. As well as a quicker answer for your visitor, removing this
improves your site’s sustainability (okay, just a little… but every little helps,
right?).

The code also passes WordPress and WordPress VIP coding standards. Because you’re
worth it.

Thanks to my co-worker [Kailey](https://profiles.wordpress.org/trepmal/) for [the original code](https://trepmal.com/2011/04/22/redirect-when-search-query-only-returns-one-match/),
which I’ve been happily using on my own site for many years. I thought it was time
to share the ♥️.

Iconography is courtesy of the very talented [Janki Rathod](https://www.fiverr.com/jankirathore).

**Please visit the [Github page](https://github.com/dartiss/solo) for the latest
code development, planned enhancements and known issues**

## 屏幕截图

[⌊The settings that are available⌉⌊The settings that are available⌉[

The settings that are available

## 安装

Solo can be found and installed via the Plugin menu within WordPress administration(
Plugins -> Add New). Alternatively, it can be downloaded from WordPress.org and 
installed manually…

 1. Upload the entire `solo-search` folder to your `wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress administration.

It’s now ready to go. By default, not all features are active – head to Settings-
> General -> Solo for all the options.

## 常见问题

### Why do you have to switch on the “exact match” option?

Because, if you’re using pretty generic titles (e.g. “Twitter”) then you may not
want this behavior.

Let me explain.

On my own site (artiss.blog – always a good read. Never dull. Please subscribe),
I often use short, single names for pages. “About”, “Blog”, that kind of thing. 
For my posts, however, I use something long and descriptive. For example, “See what
the stars of The Banana Splits look like now. Number 3 will amaze you”. For this
reason, I have exact matching switched off for pages but on for posts – if someone
types in that post title than they are very welcome to have it served straight up
to them.

### For the “exact match” feature, it only works for posts and pages. Can I add additional taxonomies?

What kind of monster are you?

But, seriously, not at the moment. But if this interests you, please let me know!

### Do you support this plugin on forks of WordPress?

No. It was developed for WordPress and so forks remain unsupported. I have no intention
of developing and testing this on any other version.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ David Artiss ](https://profiles.wordpress.org/dartiss/)

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

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

### 对开发感兴趣吗?

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

## 更新日志

I use semantic versioning, with the first release being 0.1.

#### 1.1

 * Enhancement: The code was getting quite big so I’ve split it into a number of
   files, with a control file bringing them all together. It’s a big change, so 
   required a bigger jump in revision, despite there being no visible changes.
 * Enhancement: Also added some spit and polish across the code and README more 
   generally
 * Enhancement: Added an uninstaller file to get rid of any cruft when you remove
   the plugin (not that you’d ever do that of course!)

#### 1.0.1

 * Enhancement: Improved code quality

#### 1.0

 * Enhancement: You didn’t ask for it, but you got it anyway – the search will now
   display content if you search for an exact match on the title
 * Enhancement: Settings now allow you to turn each of the options on and off, to
   your likely. You can switch them all of, if you want, although that’s a waste
   of an active plugin, if we’re being honest
 * Enhancement: Added a link in the plugin meta so you can go straight to the settings.
   Because I care
 * Maintenance: Various tweaks and fiddles, some of which may even be legal

#### 0.2

 * Bug: Fixed text domain

#### 0.1

 * Initial release

## 社区插件

该插件由社区开发和支持。 [为该插件贡献](https://github.com/dartiss/solo)

## 额外信息

 *  版本 **1.1**
 *  最后更新：**2 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.6 或更高版本 **
 *  已测试的最高版本为 **7.1.3**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (UK)](https://en-gb.wordpress.org/plugins/solo-search/) 和 [English (US)](https://wordpress.org/plugins/solo-search/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/solo-search)
 * 标签
 * [result](https://cn.wordpress.org/plugins/tags/result/)[search](https://cn.wordpress.org/plugins/tags/search/)
   [single](https://cn.wordpress.org/plugins/tags/single/)[solo](https://cn.wordpress.org/plugins/tags/solo/)
   [title](https://cn.wordpress.org/plugins/tags/title/)
 *  [高级视图](https://cn.wordpress.org/plugins/solo-search/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/solo-search/reviews/#new-post)

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

## 贡献者

 *   [ David Artiss ](https://profiles.wordpress.org/dartiss/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://artiss.blog/donate)