WordPress.org

Forums

Search Everything
Feature Request: option to search expanded author meta fields (7 posts)

  1. adambundy
    Member
    Posted 11 months ago #

    It doesnt seem that the plugin's option to search authors includes custom-configured user meta fields. I would love to be able to have a search also query that info in the admin while viewing posts.

    Thanks!

    https://wordpress.org/plugins/search-everything/

  2. silvoslaf
    Member
    Plugin Author

    Posted 11 months ago #

    Hey Adam, thanks for reaching out & I'll gladly help you out, but in order to do so, I'm going to need a bit of help.

    Where do you edit your "custom-configured user meta fields", since I would love to test them out on my blog as well, in order to see what's going on in the first place. Are those available in WordPress's default 'Users' sub-menu or are you editing them via any other plugin?

    Let me know, any additional feedback is greatly appreciated! Take care & I'm looking forward to your reply!

    Best,
    Silvo

  3. adambundy
    Member
    Posted 11 months ago #

    @silvioslaf, I am not using a plugin to manage these added custom user meta items. Im using some custom fields on the Edit User form in the admin, then using add_user_meta and update_user_meta to add and edit the fields:

    https://codex.wordpress.org/Function_Reference/add_user_meta
    https://codex.wordpress.org/Function_Reference/update_user_meta

    The new meta fields just get added as rows to the table WP_USERMETA with new meta_key values.

    It seems that the plugin doesn't access these - it would be very cool if it did.

    Thanks Silvio!

  4. silvoslaf
    Member
    Plugin Author

    Posted 11 months ago #

    Hey, thanks for the links and the extra explanation, it all makes much more sense now!

    But we were wondering — is this also visible anywhere on the page / blog? Is it possible you could take a screenshot of where this could be found, or even better — a link?

    Let us know and we'll definitely think it through if this is something to be done in one of our future releases. Looking forward to your reply!

    Take care & have a nice day!

    Best,
    Silvo

  5. adambundy
    Member
    Posted 11 months ago #

    Silvio,
    The added user meta fields can be added to the edit user profile form, therefore displaying and allowing edits via that form. In addition, columns can be added to /wp-admin/users.php to display and potentially allow sorting by those custom user meta fields. On the site in question, I have even chosen to display some of them on the admin list of posts (of custom type) for my client's convenience. It would be great if the search for posts (all types, or perhaps by option selection) would also query any added custom user meta fields.

    That said, perhaps this is an edge case. Thanks for your responses Silvo!

  6. silvoslaf
    Member
    Plugin Author

    Posted 11 months ago #

    Hey, big thanks for the detailed reply, appreciate it!

    And yes, it is an edge case, for which we cannot make any certain promises, but we always like to investigate possible future solutions.

    But we're still curious — is it possible to actually see it somewhere on a site? We'd like to see it published somewhere, just to get a proper visual of those changes.

    Thanks for your feedback on this, we appreciate your cooperation, really! Take care!

    Best,
    Silvo

  7. adambundy
    Member
    Posted 11 months ago #

    OK. Here's a screenshot of my user profile for this site, including a good deal of added user meta fields (I also show the meta key in parens next to the label for my convenience).

    https://dl.dropboxusercontent.com/u/329252/screen.jpg

    These were created and are managed via functions.php code similar to this:
    http://www.tricksbag.com/wordpress/custom-user-profile-fields-wordpress.html

    Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic