gdbbx_profile_items

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

Description

This shortcode will display list of use profile items. You need to list one or more items to show.

Definition
[gdbbx_profile_items style=”” class=”” user=0 items=”” /]
Arguments
Name
Type
Description
style
string
additional inline CSS to add to the rendered block
class
string
additional CSS class names to add to the rendered block
user
int
user ID to render items for. If the user ID is 0, it will take the currently logged-in user ID
items
string
comma separated, one or more user profile items to show
Returns
String. Rendered shortcode.
Items

Attribute for ‘items in the shortcode can have one or more of the following values.

online_status
Show user Online Status
topics_count
Show number of topics user created
replies_count
Show number of replies user made
thanks_given
Show number of thanks user has given
thanks_received
Show number of thanks user has received
registration_date
Show user registration date

Examples

Show Online Status Only

[gdbbx_profile_items user=1 items="online_status"]

Show Thanks Counts

[gdbbx_profile_items user=1 items="thanks_given,thanks_received"]
0
0
370
Rate this reference

You are not allowed to rate this post.

Leave a Comment