內容簡介
Solo 外掛旨在簡化搜尋結果的顯示過程,當搜尋結果僅有一項時,直接顯示該結果,無需額外點擊,提升使用者體驗並減少頁面加載時間。
【主要功能】
• 自動顯示單一搜尋結果
• 支援精確標題搜尋
• 符合 WordPress 編碼標準
外掛標籤
開發者團隊
原文外掛簡介
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
