WordPress.org

Forums

Simple User Listing
[resolved] How to list users by custom field? (6 posts)

  1. parakeet
    Member
    Posted 1 year ago #

    Hi,
    I have several custom user fields in my standard database. Notably, one is "company". How can I use your plugin to show only users from "company" "Widgets Inc", and then only from "company" "Sprockets Corp", and then another etc, all on the same page?

    The following doesn't work...
    [userlist meta_key="company" meta_value="Widgets Inc"]

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

  2. helgatheviking
    Member
    Plugin Author

    Posted 1 year ago #

    Meta queries are not fully supported yet. Please test this version out:
    https://github.com/helgatheviking/simple-user-listing

  3. helgatheviking
    Member
    Plugin Author

    Posted 1 year ago #

    Meta queries are not fully supported yet. Please test this version out:
    https://github.com/helgatheviking/simple-user-listing

  4. parakeet
    Member
    Posted 1 year ago #

    Thanks, Kathy.
    I've installed the new version.

    This works!:
    [userlist meta_key="company" meta_value="Widgets Inc"]

    I'm not having any luck customising templates, however.
    The four files should be in /themes/mytheme/simple-user-listing/, right? And not /themes/mytheme/simple-user-listing/templates/?
    Should originals remain in /plugins/simple-user-listing/templates or not?
    And should I lose the "-master" from the end of the new plugin folder name?

    Thanks.

  5. helgatheviking
    Member
    Plugin Author

    Posted 1 year ago #

    It is themes/mythemes/simple-user-listing/. Originals remain in plugin folder.

    Glad the meta part works. Test it out a bit and let me know if you find any problems. Otherwise, I will probably push out the update to the WP repo.

  6. helgatheviking
    Member
    Plugin Author

    Posted 1 year ago #

    Just pushed the update live to the WP repo. I'm going to mark this resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple User Listing
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.