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 )

Memberium Membership Site Workshop
October 10th-12th, 2018 in Phoenix, Arizona

Get your Memberium site and Infusionsoft app fully implemented in 3 days. Save $100 OFF your ticket until the end of this Monday, September 24th!

Click Here to Learn More and Reserve Your Seat