WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. parakeet
    Member
    Posted 9 months 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 9 months 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 9 months ago #

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

  4. parakeet
    Member
    Posted 9 months 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 9 months 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 8 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.