
內容簡介
此外掛增加了一個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 用於放置個人檔案欄位值
注意:個人檔案欄位名稱和欄位值是有大小寫區分的
外掛標籤
開發者團隊
② 後台搜尋「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
