PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Too many Users - Author dropdown timing out and crashing

  1. For example, in the advanced settings for "Post Title"
    Default Post Author will attempt to create a dropdown of all users in the database.
    Our website has 380K+ users so this is a problem as the script tries to load all 380K+ author names into the dropdown, which ultimately either timesout, or crashes the browser with JQuery errors.

    Is there a workaround we can use?
    For the future.. Ideally, having a auto-complete there would be best and not use a dropdown at all.

    Posted 13 years ago on Monday November 21, 2011 | Permalink
  2. Just answered my own question

    //Allows manipulation of the arguments that are used to create the user drop down (by the wp_dropdown_users function)

    //Visit http://codex.wordpress.org/Template_Tags/wp_dropdown_users for a more details on the available options

    add_filter("gform_author_dropdown_args", set_users);

    function set_users($args){

    //only include user with id=1

    $args["include"] = 1;

    return $args;

    }

    Posted 13 years ago on Monday November 21, 2011 | Permalink
  3. Glad you got it worked out, thanks for letting us know.

    Posted 13 years ago on Monday November 21, 2011 | Permalink

This topic has been resolved and has been closed to new replies.