[WordPress] 外掛分享: List More Custom Field Names

WordPress 外掛 List More Custom Field Names 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「List More Custom Field Names」是 2009-06-29 上架。
  • 目前有 90 個安裝啟用數。
  • 上一次更新是 2025-04-17,距離現在已有 16 天。
  • 外掛最低要求 WordPress 2.6 以上版本才可以安裝。
  • 有 4 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

coffee2code |

外掛標籤

edit | meta | post | admin | custom fields |

內容簡介

WordPress 預設只允許在撰寫文章或頁面時的下拉選單選擇欄位中列出 30 個自訂欄位名稱或鍵值。如果您或您使用的外掛使用大量自訂欄位鍵名稱,您可能會超過預設限制,導致一些自訂欄位鍵無法列出。這可能會迫使文章作者手動輸入自訂欄位鍵名稱,增加命名錯誤(打錯字或沒有使用所需的精確鍵名)的機會。這也可能會使一些作者擔心,擔心先前使用的自訂欄位鍵名稱被刪除,因為它們未被列出。

此外掛可以增加一次性至 200 個自訂欄位鍵名稱的預設限制。

沒有設定頁面可自訂預設值。如果您想列出一些與 200 不同的自訂欄位鍵名稱(例如 100),您可以用其中的任一方式:

編輯 wp-config.php 檔案,在最後面加上類似如下的一行:
define('CUSTOM_FIELD_NAMES_LIMIT', 100);
-或-
在 mu-plugin 或站點特定外掛或活動佈景主題的 functions.php 檔案中,或者不太理想的是不活動佈景主題的 functions.php 檔案中,使用 ‘c2c_list_more_custom_field_names’ 過濾器,返回您想使用的數量:
add_filter( 'c2c_list_more_custom_field_names', function( $limit ) { return 100; } );

注意:此外掛不會對使用自 WordPress v5.0 引入的區塊編輯器(又名 Gutenberg)的使用者產生影響,因為該編輯器沒有直接在介面上顯示自訂欄位。

連結:外掛首頁 | 外掛目錄頁面 | GitHub | 作者首頁

原文外掛簡介

By default, WordPress only allows 30 custom field names/keys to be listed in the dropdown selection ‘Name’ field when writing a post or page. If you, or the plugins you use, make use of a lot of custom field key names, you may surpass the default limit resulting in some custom field keys not being listed. This may force post authors to manually type in custom field key names if they aren’t listed, which increases the chances for naming errors (typos, or not using the precise key name that is needed). This may also cause some authors concern wondering where previously used custom field keys have gone since they aren’t listed.
This plugin increases the limit to 200 custom field key names.
There is no settings page to customize the default value. If you’d like to list some number of custom field key names other than 200 (say, for example, 100), you can do so in either of two ways:

By editing your wp-config.php file and at the end adding a line such as:
define( ‘CUSTOM_FIELD_NAMES_LIMIT’, 100 );
-or-
Somewhere — ideally in a mu-plugin or site-specific plugin, or less ideally your active theme’s functions.php file — hook the ‘c2c_list_more_custom_field_names’ filter and return the number you’d like to use:
add_filter( ‘c2c_list_more_custom_field_names’, function ( $limist ) { return 100; } );

Note: This plugin has no effect for users who make use of the block editor (aka Gutenberg) introduced in WordPress v5.0 because that editor does not directly expose custom fields in the interface.
Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「List More Custom Field Names」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.1 | 1.2 | 1.3 | 1.4 | 1.1.1 | 1.2.1 | 1.2.2 | 1.2.3 | 1.2.4 | 1.2.5 | 1.2.6 | 1.2.7 | 1.2.8 | 1.2.9 | 1.3.1 | 1.3.2 | 1.3.3 | 1.3.4 | 1.3.5 | 1.3.6 | 1.3.7 | 1.3.8 | 1.3.9 | 1.4.1 | trunk |

延伸相關外掛(你可能也想知道)

  • Forget About Shortcode Buttons 》相容於 WordPress 傳統編輯器,Gutenberg 整合即將推出🙂, 歡迎提出功能需求/建議!, 即忘短碼(FASC)按鈕是在所見即所得編輯器中及網站佈景主題中加入 CSS 按...。
  • Require Featured Image 》簡化您的編輯生活, 在您的一些文章類型(依照簡單的選項頁面設定)發佈前需設定一個精選圖片。如果精選圖片不足導致您的佈局出問題或外觀不佳,則此外掛程式...。
  • Post Date Time Change 》, 批次更改每篇文章、頁面或媒體庫的日期和時間。, 與 DateTimePicker 一起運作。這是一個 jQuery 外掛,可以選擇日期和時間。, 。
  • Improved Save Button 》本外掛將一個更新、更好用的「儲存」按鈕新增至文章編輯畫面,一次點擊即可儲存當前的文章並立即進入下一個動作。, (WordPress 5 相關資訊:請參見下文。),...。
  • Three Column Screen Layout 》從文章編輯器的「螢幕選項」選單中選擇額外的佈局。, 現在有 24 款變化可供選擇!。
  • Clear Floats Button 》這個外掛會在TinyMCE編輯器中新增一個按鈕,用於清除浮動元素。同時,它會使 標籤變成有效標籤,即使是空的,也不會被刪除。, 最初由 Miguel Ibero 開發。。
  • Edit WooCommerce Templates 》這個外掛可以幫助您編輯現有主題中 WooCommerce 的模板檔案, 外掛功能, , 編輯所有 WooCommerce 模板, 將 WooCommerce 模板儲存至現有主題, 從現有主題重設 W...。
  • Lucas String Replace 》Lucas String Replace 可以在任何 WordPress 處理的頁面上將任何字符串替換為其他字符串。, 它會在 WordPress 的最終輸出中替換定義的字符串為其他字符串。, ...。
  • Roles & Capabilities 》使用管理區域中強大且簡單的工具來管理您的角色和功能。, 「角色與功能」提供了一組工具,幫助管理員管理其網站的角色和功能,以及網站用戶的功能。, 只有管...。
  • Editor Templates 》您可以像主題一樣使用模板自定義編輯頁面。。
  • Bulk Menu Edit 》能夠一次刪除多個事物的可能性是一個有用的功能。透過這個簡單的擴充功能,您可以完全控制您的選單!, 主要特點:, , 勾選/取消勾選多個選單項目, 折疊/展開...。
  • Tabify Edit Screen 》當您有許多文章元框時,文章編輯畫面可能變得很難搜尋。使用 Tabify Edit Screen 外掛,建立一組標籤,讓您更輕鬆地瀏覽和管理文章編輯畫面。而且,所有功能...。
  • Tabs in Post Editor 》這個簡單的外掛允許您在文章編輯器中使用 Tab 鍵縮排程式碼或段落。, 這個外掛應該可以運作於 WordPress 的所有版本,但在 2.9 之前的版本中尚未進行測試。, ...。
  • Slash Edit 》透過在網址末端加上 “/edit”,您可以編輯文章、頁面或自訂文章類型。若您尚未登入,系統會提示您登入後才能編輯該項目。, 將分配到管理員的漂亮...。
  • Excerpt Editor 》Excerpt Editor 提供一個方便的地方來創建和編輯所有的摘要。它還可以為頁面添加自定義摘要(沒有插件無法實現)。功能包括:當發布新文章和頁面時自動創建摘...。

文章
Filter
Apply Filters
Mastodon