Unique Title Checker

外掛說明

這個外掛會檢查文章/頁面或其他自訂內容類型的新內容的標題是否在網站中獨一無二,並提供能讓使用者修改用於尋找重複標題的 WP_Query 引數的 unique_title_checker_arguments 篩選器,因此使用者可以使用外掛搜尋全站各種不同內容類型的重複標題。

這個外掛是由 ketanajani 開發的 Duplicate Title Checker 的加強版本,但 Duplicate Title Checker 僅支援 [文章] 內容類型,不支援 [頁面] 內容類型及自訂內容類型。

歡迎大家前往這個外掛的 GitHub 存放庫參與外掛開發。

如果想要協助這個外掛本地化為你的母語請前往 translate.wordpress.org

螢幕擷圖

  • 使用唯一標題的內容 (傳統編輯器)
  • 使用重複標題的新內容 (傳統編輯器)
  • 使用唯一標題的內容 (區塊編輯器)
  • 使用重複標題的新內容 (區塊編輯器)

常見問題集

網站應該使用這個外掛的原因

某些 SEO 專家表示,網站不應該有相同標題的多個頁面。如果在網站中想要避免重複的標題,這個外掛可以協助使用者達成這項工作,因為它為在使用者儲存或發佈內容前,檢查內容標題的唯一性。

這個外掛是否可用於自訂內容類型?

可以,這個外掛在實作時已將自訂內容類型納入考量。依照預設設定,這個外掛會檢查相同內容類型中的重複標題。

這個外掛會檢查哪些標題?

依照預設設定,除了 draft、auto-draft、inherit 及 trash 等狀態外,無論是何種狀態的全部內容 (包含自訂內容類型) 均會納入檢查。

如果出現重複標題,會無法儲存內容嗎?

不會,使用者一定能儲存內容,因為網站可能有使用重複標題的原因。這個外掛僅使用某些 AJAX,不會使用任何方式影響儲存內容。

檢查標題的唯一性的時機為何?

每當使用者離開標題輸入欄位,這個外掛就會檢查新標題是否具備唯一性,因此使用者可以在儲存內容前就知道標題是否獨一無二。

是否可以自訂檢查的預設值?

可以。這個外掛提供了名為 unique_title_checker_arguments 的篩選器,使用這個篩選器,使用者可以變更外掛用於取得內容重複標題的 WP_Query 引數。

這個外掛是否能檢查不同內容類型間的重複標題?

不可以。這個外掛僅能檢查相同內容類型中的重複標題,但使用者可以使用前一個問題中提到的篩選器自訂 WP_Query 引數。如需跨內容類型檢查標題,請使用這個外掛以實作能達成這種檢查的篩選器。

如果出現重複標題,是否可以僅顯示訊息?

可以,使用 unique_title_checker_only_unique_error 篩選器、設定值為 __return_true 便能停用,或使用實作這個篩選器的外掛

如何回報安全性程式碼錯誤?

使用者可以透過 Patchstack 漏洞揭露計畫回報安全性問題。Patchstack 團隊會協助驗證、分類及處理任何安全性漏洞。點擊這裡回報安全性漏洞。

使用者評論

2026 年 4 月 28 日 1 則留言
If you post every day, you know how hard it can be to ensure every post has a unique title. No matter how hard I try, I eventually have a clever idea that I’ve already had before! Save yourself the embarrassment in your own mind with this simple and straightforward extension! The developer is responsive to down reports as well, so don’t be discouraged if you run into trouble like I did!
2023 年 6 月 3 日
Works like a charm. Thanks for making it.
2019 年 7 月 22 日
Thank you so much, now I can be sure there is no more duplicate post, page & custom post type. Thanks for the plugin.
閱讀全部 9 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Unique Title Checker〉的開發相關工作。

參與者

〈Unique Title Checker〉外掛目前已有 3 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Unique Title Checker〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

2.1.0

  • Add new CSS selector for iframed Block Editor
  • Time invested for this release: 45min

2.0.0

  • Remove the jQuery dependency
  • Time invested for this release: 3h

1.9.0

  • Improve JavaScript code security
  • Time invested for this release: 60min

1.8.0

  • Fix the post_title input selection for iframed Block Editor
  • Time invested for this release: 60min

1.7.1

  • Add blueprint.json file for live demo
  • Time invested for this release: 30min

1.7.0

  • Fixing the detection of Classic editor in WordPress 6.2
  • Time invested for this release: 60min

1.6.0

  • Fixing the check for the Block Editor in new WordPress versions.
  • Time invested for this release: 90min

1.5.1

  • Load the correct JavaScript with Classic Editor activate (props to @elvismdev for the issue and PR!)
  • Time invested for this release: 30min

1.5.0

  • Improve the translation for languages having “multiple singulars” (e.g. RU)
  • Time invested for this release: 45min

1.4.1

  • Fix jQuery noConflict issue with Gutenberg block editor
  • Time invested for this release: 15min

1.4.0

  • Add support for Gutenberg block editor
  • Time invested for this release: 90min

1.3.0

  • Adding a filter unique_title_checker_only_unique_error to hide the success message if a title is unique
  • Time invested for this release: 30min

1.2.3

  • Apply WordPress Coding Standards
  • Time invested for this release: 20min

1.2.2

  • Fixing German translation and tag as tested up to 4.5
  • Time invested for this release: 10min

1.2.1

  • Fixing query arguments for admin notices
  • Time invested for this release: 10min

1.2

  • Show warning when editing a post that has a duplicate title
  • Time invested for this release: 30min

1.1

  • Show no warning on empty titles
  • Time invested for this release: 10min

1.0

  • First stable version to be deployed in the official WordPress Plugin Repository
  • Writing a readme file
  • Making some screenshots
  • Submitting the plugin request form
  • Adding plugin to the official SVN repository
  • Time invested for this release: 2h

0.1

  • First version of the plugin including a German translation
  • Time invested for this release: 3h