Support » Plugin: Simple User Listing » filter members via Simple User Listing

  • Hi I am doing a website for an aboriginal art organization and they have 5 types of members. We have set this up in Restrict Content Pro. I am wanting to display supporter members:
    Subscription Levels
    Supporter Member id 5 level 1

    I am using Simple User Listing and can get all subscribers doing

    [userlist role=”subscriber”]

    However know i want to filter to only display Supporter Members with an id 5. The meta key is rcp_subscription_level and the id =1. Wehere do i put the id? Can anyone help

    [userlist role=”subscriber” meta_key=”rcp_subscription_level”]
    https://pippinsplugins.com/custom-capabilities-rcp/

    regards
    Michael

    https://wordpress.org/plugins/simple-user-listing/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author helgatheviking

    (@helgatheviking)

    Per the FAQ you can set the meta value

    [userlist meta_key="foo" meta_value="widgets"]

    I am not 100% sure that this will work in conjunction with the role parameter, but I think that it ought to.

    Thankyou it works – thanks for the tip:) [userlist meta_key=”rcp_subscription_level” meta_value=”5″]

    Hi
    I want my user list shows just video contributor roles, not the other roles like administrators and subscribers and …
    How can I do that?
    Thanks,
    Mary

    Plugin Author helgatheviking

    (@helgatheviking)

    Mary, please read the FAQ. You need to define the role parameter in your shortcode.

    Thank you for your quick answer, I use this shortcode to my Page but nothing happens: [userlist List=3 role=”Video_Contributor” number=”5″]
    All roles are still being displayed πŸ™

    Plugin Author helgatheviking

    (@helgatheviking)

    List is not a supported parameter. I don’t know how you are defining your custom roles, but you have to be sure to use the correct role ID. Are you sure Video_Contributor is correct?

    Yes I’m sure, I also tried with the other roles like editors, authors and administrators, but nothing happens

    Plugin Author helgatheviking

    (@helgatheviking)

    Is something else filtering pre_get_users?

    Try disabling all other plugins and using Twenty Sixteen. Then save a post or edit a user to clear the transients.

    Thanks a lot
    I should write “first_role” instead of “role”
    That’s it πŸ˜‰

    Plugin Author helgatheviking

    (@helgatheviking)

    I’m not sure I understand, the parameter is role as in [userlist role="editor"]. But I’m glad it is working.

    Hello again
    I was faced with another message, after i change the fields of my list I click on “Update Field Setting” and then, when I click on “Rebuild Cache Now” I see this message: “No lines found.”
    I don’t know why???

    I think it’s because of Role Name :Video Contributor
    How should I write this word? Videocontributor / Video_Contributor / …

    Plugin Author helgatheviking

    (@helgatheviking)

    Sorry, “Update Field Setting” and “Rebuild Cache Now” are not part of Simple User Listing. I have no idea what they are from. And because I don’t know how the Video Contributor role has been added I don’t have the answer for that either. I’d search through your other plugin to find add_role().

    It would look something like this:

    $result = add_role(
        'basic_contributor',
        __( 'Basic Contributor' ),
        array(
            'read'         => true,  // true allows this capability
            'edit_posts'   => true,
            'delete_posts' => false, // Use false to explicitly deny
        )
    );

    where basic_contributor would be the role id you need for SUL.

    Thanks a lot Dear Kathy

    I use “User Profile” Plugin,
    It seems that my questions will not be finished, could you please help me to figure out how can I filter the field of “Registered days ago”, I want to see just last 7 days ago. What should I write in Columns of “Before” and “After”?

    Thanks again

    Plugin Author helgatheviking

    (@helgatheviking)

    Are you still asking about Simple User Listing? If so, I don’t understand the question (and don’t handle advanced configurations anyway). If not, I don’t support other plugins.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘filter members via Simple User Listing’ is closed to new replies.