這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Search by ID

描述

Ever wanted to do a quick search for a post with a specific ID? The built-in search doesn’t allow that. But now you can.

Features:

  • Works for all kinds of posts (regular posts, pages, custom post types and media).
  • No configuration needed.
  • Doesn’t add javascript or css; it has virtually no impact whatsoever.
  • No front-end functionality, just back-end.
  • Doesn’t add any options or tables to the database.

Just a nice, clean and easy, seamless extension of the built-in search.

How to use it:

Simply enter an ID into the search field. If a post with that ID is found, it will show up in the search result.

You can even enter a list of IDs if you want to search multiple IDs. For instance “100, 200, 300”.

安裝

  1. Upload the search-by-id folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

That’s right. There’s no step three.

常見問題

What does it do?

Whenever a search is executed, the plugin simply hooks into that query and checks if the query (the phrase you entered into the search field) is a numeric value. If it is, it modifies the query so that it also searches for post ID’s (default is to only search title and content).

I’ve installed and activated the plugin, but cannot find it in the admin area

There is nothing new to be found, my friend. It hooks into the good old search input field you see in the top right corner when viewing the lists of posts (or pages, or whatever post type you may use). Just enter an ID into that field, and you will see.

It’s not working

That’s not really a very descriptive question, but I shall try to answer nonetheless ;). If you find that searching for an ID that definitely does exist does not work, it’s most likely because you have another plugin installed that interferes with the same filter that this plugin uses. I’m afraid I can’t do anything about that. Almost every bug report I receive is caused by an interfering plugin, so please check before you post in the support forum.

評價

2019年3月31日 2 replies
Very nice and useful. What would be great, when it also would work in the frontend search
2018年12月30日
Thanks for writing this! Once again I find myself wondering how such a popular CMS can be so poor at content management...
閱讀全部18個評價

貢獻者及開發者

“Search by ID” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Search by ID 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.3

  • Code maintenance for five oh. No new features has been added.

1.2

  • Updated for 4.1.1. Slight rewrite of the filter was necessary. Updated description and FAQ.

1.1

  • Added support for searching multiple IDs. Credit goes to Ben Wise for suggesting this.

1.0

  • Initial release.