Using Restrict Content Pro, we play around with creating a subscription for a user. I use my own WordPress account as a test, giving it an active subscription.

We reference some of the help materials for RCP, which is actually right within the plugin settings itself, which is pretty cool.

When we create/edit a page in WordPress, there is a new module of settings that comes from RCP. We could, for example, make an entire page only viewable by a user with an active subscription of a certain level. We're not going to do that for the most part though, we're going to make our own templates and decide what to show and not show with logic inside the templates themselves.

For instance:

<?php if (rcp_is_active()) { ?>

  Content for users with an active subscription

<?php } else { ?>

  Content for logged out or inactive subscribers

<?php } ?>

Within that logic, you could do more specific logic for levels.

If we want to expose content to only a certain level of user right from within the content editor itself, RCP also gives us shortcodes for that purpose.

Comments

  1. User Avatar
    Ewan Main

    Hi Chris. Firstly, thanks for two great series; I’ve now watched every one of both and learned a ton!

    Just a small suggestion, which I’m leaving on this post as its solution will probably come from the Restrict Content Pro logic. I allowed my subscription to lapse as I was really busy last month and knew I could come back to renew it whenever I had some more time. Yesterday I signed up to another month of Bear and found that there was only one single video left for me to watch (the final wrap-up of the artist website series). Can’t be helped; I just happen to have got as far as episode 39 before my subscription ran out previously.

    So my suggestion is that perhaps the logic be changed so that even without logging in, you can see the list of content that is in the Lodge. Perhaps the archives pages should be visible, but the titles only be turned into clickable links if you’re an active subscriber? Or even just an extra page that isn’t within The Lodge but outputs a contents list of what’s in there? Thanks to your excellent walkthrough of RCP I can see it doesn’t look too hard. Just would make things a little nicer for users, that’s all. I paid $19 just for a single 10-minute video and it left me feeling annoyed at myself!

    Anyway, thanks for all your excellent work :-)

  2. User Avatar
    Ewan Main
    Permalink to comment#

    OK, now I feel stupid for not noticing that before… many thanks :-)

Submit a Comment

Posting Code

You may write comments in Markdown. This makes code easy to post, as you can write inline code like `<div>this</div>` or multiline blocks of code in triple backtick fences (```) with double new lines before and after.

Code of Conduct

Absolutely anyone is welcome to submit a comment here. But not all comments will be posted. Think of it like writing a letter to the editor. All submitted comments will be read, but not all published. Published comments will be on-topic, helpful, and further the discussion or debate.

Want to tell us something privately?

Feel free to use our contact form. That's a great place to let us know about typos or anything off-topic.

icon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag