• Resolved sineros

    (@sineros)


    I would like to list members with some custom fields like spreadsheet.
    Ordered by Last name
    All headers on top and info below.
    Something like this:

    Name I Lastname I Custom_field1 I Custom_field2
    ……….. …………… ……………. …………………….
    ……….. …………… ……………. …………………….
    ……….. …………… ……………. …………………….

    How can I do that?

    https://www.ads-software.com/plugins/s2member/

Viewing 9 replies - 1 through 9 (of 9 total)
  • I am trying to do this too.

    I found this post but wp-content/member-list.php is not recognized/loaded on my site.

    I found a work-around, but it’s not ideal, because you need to edit core plugin files.

    I made a copy of /s2member-pro/includes/templates/members/member-list.php and put it somewhere outside of the plugin directory (for backup).

    I then edited /s2member-pro/includes/templates/members/member-list.php to fit my needs.

    This is not update proof, because this file will be overwritten when a new version comes, so be aware of that.

    But i can’t find a better solution yet….

    You can see it in action on my (dev) site.

    AMR users plugin will let you do what you want, display a custom list of all or any WP users and s2member fields including custom values, and export as csv

    https://www.ads-software.com/plugins/amr-users/

    and this add on will allow formatting s2member unix time stamps into human readable format

    https://wpusersplugin.com/downloads/amr-users-plus-s2-member/

    several other add ons are also available to add more functions and formatting options to the lists

    sam

    sam

    why use another another plugin, when the current one can do what I want ?

    The method I described works perfectly for me.
    This is my code for members-list.php: https://pastebin.com/ff6k7tUs

    and I use this shortcode

    [s2Member-List-Search-Box placeholder="Search for IDF number, name or category" /]
    [s2Member-List limit="100" roles="s2member_level1,s2member_level2,s2member_level3,s2member_level4,administrator" show_avatar="0" show_display_name="0" orderby="first_name,last_name" order="ASC" show_fields="Name:display_name,Rider number:ID,Nationality:s2_user_nationality,Class:s2_user_category" enable_list_search="yes" rlc_satisfy="ANY" /]

    as you said above, hacking of s2member plugin core files is not an ideal solution for several reasons ??

    amr users also allows for more advanced filtering and sorting plus html customization etc vs s2Member-List shortcode

    or you could probably just cook up a simple custom shortcode to display any user info as desired using get_users or WP_User_Query etc

    sam

    Sorry, I forgot to post one update…

    It does work when the file is placed in wp-content/themes/active-theme-directory/ instead of wp-content/.

    So the location in knowledge base article is wrong…

    Plugin Author JasWSInc

    (@jaswsinc)

    Thanks for the heads up on this thread.

    I had this KB article updated:
    https://s2member.com/kb-article/using-a-custom-template-for-s2member-list/

    Note that /wp-content/member-list.php will work fine, but it requires that you add a new shortcode attribute as described in the updated copy of that article.

    [s2Member-List ... template="member-list.php" /]

    Where the member-list.php file can be anywhere inside /wp-content. You can even nest it into a sub-directory and reference it relative to /wp-content in the template="" attribute.

    thanks for the update… that is a bit more clear…

    although I prefer to have it inside my theme directory, but that’s personal ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘"Member list" listing with custom fields’ is closed to new replies.