Profile field based content shortcode

0

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 us

Version
Last updated
Active installations
WordPress Version
Tested up to
Rating
Total ratings
Tags
This plugin is outdated and might not be supported anymore.

Description

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