Title: Display memberlist
Last modified: August 30, 2016

---

# Display memberlist

 *  [thedert](https://wordpress.org/support/users/thedert/)
 * (@thedert)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/display-memberlist/)
 * I currently have this code on my ‘member directory’ page:
 * [php] if(!empty($_REQUEST[‘s2-s’])): [/php]
    [s2Member-List enable_list_search
   =”yes” show_fields=”School District:school_district,Email:Email, Position Title:
   position_title,Work Email:work_email,Contact Number:contact_number,” limit=”30″/][
   php] endif; [/php]
 * I can search everything fine, the problem is I’d like this directory to already
   populate the list and not require me to have to search before seeing the list
   of members
 * [https://wordpress.org/plugins/s2member/](https://wordpress.org/plugins/s2member/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/display-memberlist/#post-6862802)
 * How about just putting in a `[s2Member-List /]` between `[/php]` and `[s2Member-
   List enable ...` ?
 *  Thread Starter [thedert](https://wordpress.org/support/users/thedert/)
 * (@thedert)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/display-memberlist/#post-6862923)
 * [s2Member-List /] is already included within the snippet
 *  [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/display-memberlist/#post-6862933)
 * I get that. But you say it’s not populating the list with the other attributes.
   So I suggested just using the basic shortcode first to generate the list.
 *  Thread Starter [thedert](https://wordpress.org/support/users/thedert/)
 * (@thedert)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/display-memberlist/#post-6862935)
 * Gotcha. Only issue with that is it will display full list and then a search result
   on top of that.
 *  [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/display-memberlist/#post-6862938)
 * Yes, I understand it’s not ideal. Another thing that strikes me now that I consider
   this again is whether listing the attributes in a different order might work 
   better. I know that some shortcodes are really sensitive to the order of attributes,
   though I don’t know if this one is.
 *  [krumch](https://wordpress.org/support/users/krumch/)
 * (@krumch)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/display-memberlist/#post-6862953)
 * [@thedert](https://wordpress.org/support/users/thedert/) Try to put initial “[
   s2Member-List /]” in a “div”, then use JS to find if the shortcode with the search
   function shows something. If shows, hide the initial one. So if not search results
   shown, initial one will be there. This may need both [s2If], JS and PHP code,
   tough.
 *  Thread Starter [thedert](https://wordpress.org/support/users/thedert/)
 * (@thedert)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/display-memberlist/#post-6862957)
 * [@krumch](https://wordpress.org/support/users/krumch/) good suggestion! I will
   try it out and return with results

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Display memberlist’ is closed to new replies.

 * ![](https://ps.w.org/s2member/assets/icon-256x256.png?rev=980067)
 * [s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions](https://wordpress.org/plugins/s2member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/s2member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/s2member/)
 * [Active Topics](https://wordpress.org/support/plugin/s2member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/s2member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/s2member/reviews/)

## Tags

 * [member](https://wordpress.org/support/topic-tag/member/)
 * [S2](https://wordpress.org/support/topic-tag/s2/)

 * 7 replies
 * 3 participants
 * Last reply from: [thedert](https://wordpress.org/support/users/thedert/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/display-memberlist/#post-6862957)
 * Status: not resolved