Expand the functionality of the Limit Post Views Add On to offer viewing limits on Custom Post Types and pages, too. This is a great way to offer non-members and free members a sample of your members-only content and improve the conversion rate for a “premium content” type membership site.
About the Limit Post Views Add On
Our Limit Post Views Add On tracks visitor post views on member-restricted content via a cookie. The plugin’s settings allow you to specify a number of views per “term” for non-members as well as by membership level. It will allow visitors or members limited access to view posts they do not already have access to view. Once the user’s view limit is reached, they are redirected to the assigned page—most often your site’s Membership Levels page.
The code recipe below will enable these features to not only work on Posts, but Pages, too. Plus, you can keep adding
$post_types to this code recipe to apply the rules for other Custom Post Types.
Once the code is added to your site, a user will be redirected to a page of your choice after reaching their view limit (regardless of whether the user viewed a members-only post, page, or other CPT).
The Code Recipe
More about Limit Post Views
If you are new to Paid Memberships Pro, check out some of these other articles related to this Add On: