[WordPress] 外掛分享: Profile field based content shortcode

首頁外掛目錄 › Profile field based content shortcode
WordPress 外掛 Profile field based content shortcode 的封面圖片
全新外掛
安裝啟用
尚無評分
3324 天前
最後更新
問題解決
WordPress 3.0.1+ v1.0 上架:2017-02-04

內容簡介

此外掛增加了一個shortcode,可依據Buddypress的個人檔案欄位顯示內容

假設我們有一個「性別」的個人檔案欄位,內容為「男性」和「女性」,以下是我們如何使用此shortcode:

[profile_field_content profile_field=”Gender” profile_field_value=”Male”] 這裡的內容是針對男性 [/profile_field_content]
[profile_field_content profile_field=”Gender” profile_field_value=”Female”] 這裡的內容是針對女性 [/profile_field_content]

請注意,此shortcode有兩個參數:
profile_field 用於放置個人檔案欄位名稱
profile_field_value 用於放置個人檔案欄位值

注意:個人檔案欄位名稱和欄位值是有大小寫區分的

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Profile field based content shortcode」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Adds shortcode to show content based on Buddypress profile field
Suppose we have “Gender” profile field for “Male” and “Female” profle field values .
Here’s how we can use the shortcode :
[profile_field_content profile_field=”Gender” profile_field_value=”Male”] This content is for male [/profile_field_content]
[profile_field_content profile_field=”Gender” profile_field_value=”Female”] This content is for female [/profile_field_content]
Note that the shortcode has two parameter :
profile_field where you put the profile field
profile_field_value where you put the profile field value .
NOTE : Profile field value and profile field names are case sensitive

文章
Filter
Apply Filters
Mastodon