內容簡介
此外掛會自動將文章標題和圖片標題轉換為Title Case(首字母大寫)。
什麼是Title Case?
title case 會把以下任何一種格式:
Let’s go to the market
Let’s Go To The Market
let’s go to the market
LET’S GO TO THE MARKET *(除了這種情況 - 詳見下文)
轉換為:
Let’s Go to the Market
List of Article/Minor/Short Words | List of Acronyms*
*原來我曾經編寫了一個處理首字母縮略詞的代碼,以便將「LET'S GO TO THE MARKET」標題轉換為Title Case(請注意,只要這些縮寫已經是大寫,它們就會自動保留在所有其他情況下)。 然而,這並不是一個非常理想的解決方案,對於極為罕見的問題來說太過麻煩了。 因此,如果您有需要將所有大寫標題轉換的罕見問題,我仍然可以提供自定義/手動解決方案,但我決定不將其納入插件的官方範圍。
其他注意事項:
啟用後,Auto Title Case 將更新包括頁面、文章、自訂文章類型、圖片等在內的所有新的和現有的標題。在對數據庫進行此類批量更新時,建議首先進行備份。
針對新的圖片上傳,標題和 Alt 屬性將從文件名稱生成。這樣做,再加上使用正確的關鍵字文件名稱,有助於 SEO。 不好的做法:DSC_0001.JPG。好的做法:lets-go-to-the-market.jpg。
目前僅支援英語。非英語標題將使所有單詞的首字母大寫 (例如:Vamos Al Mercado)。 如有足夠的需求,以及得到足夠幫助,可以支援其他語言。
外掛標籤
開發者團隊
原文外掛簡介
💬 Ask Question | 📧 Email Me
Automatically converts post and image titles to title case.
What is title case?
Title case would convert any of the following:
Let’s go to the market
Let’s Go To The Market
let’s go to the market
LET’S GO TO THE MARKET *(except for this scenario — see below)
to:
Let’s Go to the Market
List of Article/Minor/Short Words | List of Acronyms*
*Originally, I had coded in a way to handle acronyms so that “LET’S GO TO THE MARKET” titles could be converted to title case (note that acronyms are automatically preserved in all other cases as long they’re already in uppercase). However, it wasn’t very ideal. A bad solution for an extremely rare problem. So, if you have the rare problem of having all uppercase titles that need to be converted, I can still help with a custom/manual solution, but I decided against it being in the plugin officially.
Additional Notes:
Once activated, Auto Title Case will update all new and existing titles of pages, posts, custom post types, images, etc. Whenever making such bulk updates to the database, it’s recommended to first make a backup.
For new image uploads, the titles and alts will be generated from the filename. This, along with using properly keyworded filenames, is good for SEO. Bad: DSC_0001.JPG. Good: lets-go-to-the-market.jpg.
Currently only supports English. Non-english titles will convert all words to having their first letter capitalized (Vamos Al Mercado). With enough demand, and maybe some help, additional languages could be supported.
