This shortcode renders the total number of times the content has been purchased. Must be used inside the loop, either in the content field or in your theme’s template files.

Requires the Sell Content add-on to be enabled.

Available since version 1.7

Shortcode Attributes

Attribute Type Required Default Description
wrapper string No - The HTML element to use as the wrapper around the number. Should not be used if you do not want to use a wrapping element.
post_id int No - Option to provide a post ID. If not used, the current posts ID is used instead.

CSS Styling

.mycred-sell-this-sales-count { }


Example 1: Default usage.