[WordPress] 外掛分享: Display Custom Fields

前言介紹

  • 這款 WordPress 外掛「Display Custom Fields」是 2014-05-16 上架。
  • 目前有 20 個安裝啟用數。
  • 上一次更新是 2014-07-31,距離現在已有 3929 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

teacii |

外掛標籤

meta | meta fields | display meta | custom fields | display field value |

內容簡介

此外掛可讓您在頁面或文章上顯示自訂欄位的值。允許的值為原始文字、HTML、JavaScript、JavaScript 檔案 URL、CSS 或 CSS 檔案。

從版本 1.1.x 開始,您也可以顯示任何頁面或文章的自訂欄位,只要您有 id。

此外掛的其中一個預期用途是提供即時的程式碼,而不需編輯佈景主題。通常,程式碼,尤其是 CSS,在佈景主題更改時會丟失。這種技術將確保僅在指定的頁面上加載值,並且它們將在佈景主題和其他外掛更改時仍然存在。

您還可以使用此外掛來包含 JavaScript 片段或檔案。它們將僅在指定的文章或頁面上加載。這反過來允許僅在需要時加載腳本。

您可以使用此外掛的兩種方式:
[dcf field=”custom_field_name”]
或選擇性地,您可以
– 定義欄位值的類型。默認類型為“原始值”。
– 提供頁面或文章的 ID 編號。默認情況下,它將是當前頁面或文章的 ID。
[dcf field=”custom_field_name” type=”value_type” id=’post_or_page_id_number’]

接受的值類型為:

“原始值” – 這是默認值,您不需要指定此類型。它會按原樣輸出值。您可以在值中安全地使用 HTML 代碼。

“JS” – 使用此選項指定值實際上是 JavaScript。不要用 script 標籤包裝它。請記住,$ 在 WordPress 中不是有效的 jQuery 替代品。您應該使用“jQuery”代替。

“JSF” – 您可能需要包含 JavaScript 檔案。自訂欄位的值應為完全限定的 JavaScript 檔案 URL。

“CSS” – 使用此選項指定自訂欄位中的值為 CSS 代碼。

“CSSF” – 您可能需要包含 CSS 檔案。自訂欄位的值應為完全限定的 CSS 檔案 URL。在此,我要注意以下事項:
– 在 body 中包含 CSS 檔案非常不尋常。然而,它確實可以運作。
– 有可能出現副作用,某些元素在完全載入 CSS 檔案之前可能無法正確顯示。

原文外掛簡介

This plugin allows you to display the value of a custom field on a page or post. Permitted values are raw text, html, javascript, javascript file url, css, css file.
Since version 1.1.x it also allows you to show a custom field of any page or post, provided you have the id.
One of the intended use of this plugin is to provide just in time code without editing the theme. Often code, especially css, gets lost with theme change. This techniques will ensure the values are loaded only on the given page and they will survive changes of themes and other plugins.
You can also use this to include javascript snippets or files. They will only be loaded on the given post or page. This in turn allows for loading of scripts only where needed.
You may use the plugin in two ways:
[dcf field=”name_of_custom_field”]
or optionally you can
– define the type of the field value. By default the type is “raw”.
– provide the id number of the page or post. By default, it would be the current page/post id.
[dcf field=”name_of_custom_field” type=”value_type” id=’post_or_page_id_number’]
The accepted value types are:
“raw” – this is the default and you do not need to specify this type. It outputs the value as it is. You can use html code in the values quite safely.
“js” – use this to specify that the value is actually javascript. Do not wrap it with the script tag. Remember that $ is not a valid jQuery replacement in WordPress. You should use “jQuery” instead.
“jsf” – You may need to include a javascript file. The value of the custom field should be a fully qualified javascript file url.
“css” – use this to specify css code in the value of the custom field.
“cssf” – You may need to include a css file. The value of the custom field should be a fully qualified css file url. Here I would like to note that:
– It is highly unusual to include css files in the body. However, it does work.
– There may be a side effect that some elements may not show properly until the css file is completely loaded.

各版本下載點

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

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


1.0.0 | 1.0.1 | 1.1.1 | trunk |

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

  • Easy Post Types and Fields 》m your custom post types., , , Include custom fields and taxonomies in the table., , , Customize the table columns to display only the information ...。
  • SEOS 》, SEO 選項, 在 WordPress 儀表板上顯示註釋。, 使用快捷代碼顯示固定註釋。, , , SEOS WordPress 外掛。簡單易用的優化 SEO 外掛。, https://www.seosthemes...。
  • GTL Components 》此外掛程式是用來配合一些Greenturtlelab的佈景主題使用的,此外掛會註冊所需的自訂文章類型、分類和欄位,以使佈景主題能夠運作。, 這個外掛會在 WordPress ...。
  • Add Custom Fields to Media 》** 此外掛已不再更新。請隨意收養我!**, 允許使用者在媒體上傳程式中新增自訂欄位,並可在版型檔案中進入這些欄位。非常適合新增版權等資訊。, 包含以下功能...。
  • Bella Kit 》這個外掛是 Bellathemes 的某些主題的配套使用。它註冊了必需的自定義文章類型和元字段,使主題能夠正常運作。, 注意:某些功能在主題的免費版本中不可用。, ...。
  • XML Import 》his area will display the XML code from the feed., The XML code can be edited, but be careful not to break the format or structure., , , , , 這個外...。
  • WPRS Data Transporter 》這個外掛讓你可以將評論和星星評價的輸入 Schema markup 從一個主題/外掛移轉到另一個。 我們都知道在不同平台間移轉是多麼困難,這個外掛可以幫助解決這個問...。
  • WP Search Include Meta Fields 》這個 WordPress 外掛可以擴充預設的搜尋功能,讓你可以搜尋到自訂欄位的內容。, WP Search Include Meta Fields 外掛的主要功能包括:, , 無需進行設定, 可整...。
  • Meta Extension 》這個外掛基於 WordPress 內建的 meta 標籤,提供您輸入資訊的欄位並進行擴充。您可以修改外掛目錄中的 conf.txt,將自定義欄位加入到文章頁面中以添加文字欄...。
  • Easy Meta Builder 》Easy Meta Builder 是添加 WordPress 元數據最快、最簡單的方式。它可幫助您為文章類型添加自定義元數據字段,而無需開發人員。您可以添加額外的字段到用戶個...。
  • Additional Authors 》讓你可以在文章中新增多位作者。, 隨意區段。
  • Elite Stay Helper – Create Cpts and taxonomy for rooms 》**總結:**, , Elite Stay Helper 外掛是專為飯店相關網站設計的強大工具。它提供一系列自訂功能,以增強飯店相關各方面的管理。無論您是管理房間、展示附近景...。
  • Effortless Custom Fields :: ECF 》- 大部分現有的自訂欄位外掛存在著一些重大問題:組織欄位是一個很大的挑戰,對欄位的設計關注度不高,我們經常需要等待不需要的 ajax 請求和頁面加載,前端...。

文章
Filter
Mastodon