Support » Plugin: Paid Memberships Pro » Custom Profile Fields / Custom Post Types control

Viewing 5 replies - 1 through 5 (of 5 total)
  • I found this relating to CPT:
    And I read somewhere else that PMP hooks into WP’s user fields so I’ll resolve this ticket myself and just say that I vote for a GUI version of CPT control and user profile field customizations. Thanks for this free plugin.


    I’m looking for this too. I have a calendar on my site and I’m not able to make the events protected by Paid-Memberships-Pro. Was hoping I could accomplish this with custom field of some kind.


    I figured out a pretty simple way to hide the calendar page from people who are not “members”.

    On my site, I have it working so that I can hide the widget from visitors who are less than level 2 but I couldn’t figure out who to hide the full calendar page from their view. So I created a custom template for this page. I removed all the extra unnecessary php so I could figure out where the custom php needs to go easier. After some trial and errors, I added this code to my template and it works great. Hope it helps.

    For me, it worked great like this

    <?php if(pmpro_hasMembershipLevel('0,1')) { ?>
    <div class="post-content"><strong><p>This Calendar is restricted.</strong></p>
    <p>More Text Goes Here.</div>
    <?php } ?>
    <?php if(pmpro_hasMembershipLevel('2')) { ?>

    The first part shows a restriction message to any visitor with an access level of “0” or “1”. The second part shows the full calendar if the visitor is a logged in member of level “2”

    Hope it helps.

    I think I found the fix!
    All you need to do is just locate:
    Search inside for
    “add_meta_box(‘pmpro_page_meta’, _x(‘Require Membership’, ‘metabox heading’, ‘pmpro’), ‘pmpro_page_meta’, ‘page’, ‘side’);

    Now just change the ‘page’ to whatever is the code-name of your custom-type.
    For example, try to create a new custom type and if your address looks like this:

    Then, “myportfolios” is your custom-type.
    Just replace the word “page” in the metabox above to myportfolios
    Thats all!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Profile Fields / Custom Post Types control’ is closed to new replies.