This Applies to
OTHER DOCS Available


This shortcode includes a counter of how many times a user has viewed a specific page or post.

Shortcode Examples

[memb_user_counter name="test counter" op="incr"]

Example Usage for logged in member:

You have viewed this page [memb_user_counter name="test counter" op="show"] times.

Shortcode Parameters​

name: The name of the counter, can include spaces.
set: Sets the counter to the value define in “val”.
show or get: Displays the counter (Default).
incr: Increase the counter by val (defaults val to 1 if not set).
decr: Decrease the counter by val (defaults val to 1 if not set).

Shortcode Attributes

Conditional: No (?)
Nestable: No (?)
Accepts formatting: No (?)
Capturable: No (?)

Additional Information

PHP Function:

[$membershipsystem->getUserCounter( $counter_name )
[$membershipsystem->setUserCounter( $counter_name, $new_value )
  • Was this Helpful?
  • YesNo
9 ways to add more value to your membership site


This Applies To

Book a Call

Welcome to Memberium!

We are very excited for you to be part of our family. 

We would love to answer any questions that you have!

Please choose the best time for you to get in a call with us. 

For Technical Support, you can contact us at https://keap.memberium.com/support/ or Email us at support@memberium.com.