Category Archives: no

How To Display Custom Fields in Widgets

Displaying custom fields in widgets is very easy and it can be done by using the Custom Profile Fields shortcode.

The following shortcode can be used to display custom fields in your custom page templates.

[usersultra_user_custom_meta_info fields_list='first_name:First Name,last_name: Last Name' within_widget='yes']

Using the Custom Profile Fields shortcode in Widgets:

1 – Click on Appearance & Customization – Widgets & Modules.

step1

By default the new widget is added in the Unavailable Widgets section and you have to drag&drop it in the Available Widgets Area.

step2

Once you have dragged and dropped the widget you have to click on the “Apply layout” button. This is important, otherwise the front end users profile won’t display the new widget.

step3

Click on one of your user’s profile and you will see the following widget:

step4

Protect Content

[usersultra_protect_content]

This Shortcode protects portions of contents bassed on logged in or membership.

Options:

OPTIONS DEFAULT ALTERNATIVES
logged_in_based NULL logged_in_based, membership_based, role_based, group_based
membership_id NULL the ID of the membership package separated by commas
custom_message_loggedin NULL “_blank” will display a blank message.
custom_message_membership NULL “_blank” will display a blank message.
ccap any user with these tags will be able to see the protected content. you can set the tags in the UU Users module.
roles NULL any role you wish to display the content to. Example: administrator, subscriber
custom_message_role NULL “_blank” will display a blank message.
groups NULL any group ID you wish to display the content to. Example: 1,3. You will find the group’s ID on the groups module.
custom_message_group NULL “_blank” will display a blank message.

Logged in based protection:

			
[usersultra_protect_content display_rule='logged_in_based' custom_message_loggedin='Only Logged in users can see the content']Your private content here [/usersultra_protect_content] 

Role based protection:

[usersultra_protect_content display_rule='role_based' roles='subscriber,administrator' custom_message_role='Only Subscribers can see the content']Your private content here [/usersultra_protect_content] 

Groups based protection:

[usersultra_protect_content display_rule='group_based' groups='2,4' custom_message_group='Only Users in this group can see the content']Your private content here [/usersultra_protect_content]