mycred_content_buyer_count

Codex / mycred/content / Shortcodes / mycred_content_buyer_count

Description

This shortcode renders the total number of users that have purchased the content. 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.0

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-author-count { }

Example

Example 1: Default usage.

[mycred_content_buyer_count]

Last edited June 23, 2016