• Resolved bladechob

    (@bladechob)


    Hi, is it possible to lift out a level list? i.e. I have 7 user levels 3 of which need displaying on a specific page. For example, a page for level 3 users, another for level 5 and one for level 7. I’m hoping that as new members are entered and their level selected it will display their username and image on the required page. Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi blade,

    You can’t specify a level for the user-list shortcode. You can, however, use the field_name and field_value attributes to display only those users who match a specific value for a specific custom field. You should be able to make use of a custom field to achieve the kind of user display you want.

    Thread Starter bladechob

    (@bladechob)

    Thanks for that. Can you provide a syntax example please that would bring back the First Name, Surname and image from a specific custom field? I.e. you search against the postcode field name and matching results display Image, First Name, Surname.

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Now you’re talking about something different. From your original question, it sounded like you wanted to filter who showed up in the list. Now it sounds like you’re trying to control which information about a user shows in the list. Which is it that you’re trying do?

    To control what information displays about each user, just use the display_field attribute. For example:

    [user-list display_field="First Name,Surname"]
    
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom user listings’ is closed to new replies.