• Resolved raylady434

    (@raylady434)


    I want to show post to all my not logged in members and logged in members but not my Customers ..
    [pms-restrict display_to=”not_logged_in,Subscriber” subscription_plans=”Customer”]
    i used this but only working for guests(not_logged_in) not for subscriber .

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support thomaswild

    (@thomaswild)

    Hello @raylady434,

    If I understood correctly, you wish to display a certain post to:
    1. logged out users
    2. users that are logged in with a specific subscription plan (or multiple plans except the Customer role)

    In that case, you will need to add the restricted section twice as there is no shortcode that can restrict it to both at the same time.

    For logged out users you can add the following:

    [pms-restrict display_to="not_logged_in"]
    ...content here...
    [/pms-restrict]

    Now, you repeat the content but this time you add the restriction to only show the content to the specific membership/s.

    [pms-restrict subscription_plans="first_id, second_id"]
    ...content here...
    [/pms-restrict]

    Note: Replace first_id and second_id with the ids of the subscription plans (so not the name of the plan) you would like to see the restricted content. You can see the ID of a plan by navigating to Dashboard -> Paid Member Subscriptions -> Subscription Plans -> the first column of the table.

    Thread Starter raylady434

    (@raylady434)

    Hello , @thomaswild Thnx for reply

    [pms-restrict display_to=”not_logged_in” message=””]
    ..content here…
    [/pms-restrict]

    This Working for guests

    [pms-restrict subscription_plans=”Customer” display_to=”Subscriber” message=””]
    ..content here…
    [/pms-restrict]
    i tried to display this content to ppl who got only Subscriber role but not working..
    This only works for users who only have Customer Role ,

    Plugin Support thomaswild

    (@thomaswild)

    Hello @raylady434,

    Instead of using the subscription plans name, you should use the id. As an example, if the Customer role you mentioned would have the id 123 and you wanna show the content to the Customer role, than the shortcode should look like this:

    [pms-restrict subscription_plans="123"]
    ...content here...
    [/pms-restrict]
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Show all Except Customers,’ is closed to new replies.