Linux 软件免费装

Solo

开发者 dartiss
更新时间 2024年7月7日 15:33
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.6
版权: GPLv2 or later
版权网址: 版权信息

标签

search title single result solo

下载

1.1 1.0.1 1.0 0.1 0.2

详情介绍:

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 for the original code, 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. Please visit the Github page for the latest code development, planned enhancements and known issues

安装:

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.

升级注意事项:

1.1
  • No new features but a big shake-up of the code layout

常见问题:

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!

更新日志:

I use semantic versioning, with the first release being 0.1. 1.1 1.0.1 1.0 0.2 0.1