
內容簡介
使用 Site Settings 外掛程式,建立管理員欄位以儲存短文本片段,以供主題範本使用。例如,透過 header.php 範本顯示的電子郵件或電話號碼。
它也可以用於儲存您可能需要參考的資料,例如頁面的 ID 或您用於在主頁面上顯示帖子類別的類別。
將這些設定儲存在管理員介面中比直接編碼在您的模板中更為可取,因為這樣可以輕鬆地進行更新。
閱讀文件 以瞭解如何添加管理員欄位和區段。
外掛標籤
開發者團隊
原文外掛簡介
Use the Site Settings plugin to create admin fields for storing short text snippets for use in your theme templates. For example, an email or phone number that is displayed via your header.php template.
It can also be used for storing data which you may need to reference such as the ID of a page or a post category which you use to feature posts on your home page.
Storing these settings in the admin is preferable to hardcoding them into your templates so they can be updated easily.
Read the documentation to find out how to add admin fields and sections.
