myCred Ranks Plus

Estimated reading: 2 minutes 494 views

myCred Ranks Plus

Description: This shortcode will render all the ranks of the specific type_id that have been assigned/issued, whether single or multiple ranks earned through the same type. If the type_id attribute is not set, the shortcode will not display the rank.

Shortcode: mycred_ranks_plus

Shortcode Attributes:

Attribute Type Required Default Description
type_id
INT
Required
-
Define the “type_id” if you want to see the specific rank that is associated with the defined type_id. Note: Many ranks can have the same type_id. Do not be confused if you see many ranks.
title
INT
Optional
1
Either set 0 to hide the title or 1 to show the title.
title_link
INT
Optional
1
Set the attribute value 0 to remove the anchor from the link.
image
INT
Optional
1
Set the attribute value 0 for hiding the rank image/logo.
image_size
INT
Optional
-
Set the value for resizing the image from the default dimension to the defined one. The value you’ll define will be considered, like the width and height of the image/logo. e.g. image_size=1000 or image_size=750 etc.
excerpt
INT
Optional
0
Set attribute value 1 to show the excerpt.
requirements
INT
Optional
0
Set the attribute value 1 to display the defined rank requirements on the front end.
earners
INT
Optional
0
Set the attribute value 1 to show the earned users who earned that rank.
earners_limit
INT
Optional
10
To change the limit of the number of earners. e.g. earners_limit=20 or earners_limit=8
display
STRING
Optional
horizontal
Either set the vertical or horizontal value to change the style.

Example 01:  [mycred_ranks_plus type_id=37]

Example 02: [mycred_ranks_plus type_id=3 title_link=0 image_size=225]

Example 03: [mycred_ranks_plus type_id=37 earners=1 requirements=1 excerpt=1 display=”vertical”]

Example 04:  [mycred_ranks_plus type_id=37 earners=1 excerpt=1]