Forums Forums Search & Filter Pro Search results not working properly

Viewing 3 posts - 11 through 13 (of 13 total)
  • Trevor
    #234602

    Because User ID (a number) is stored as the author in posts, our plugin has an Author field which will do just that.

    Anonymous
    #234634

    Great, i found it, and is there a way to hide user roles from the dropdown, or show only a specific role?

    Trevor
    #234806

    This isn’t easy to do, but it IS possible.

    You would need to use this filter to modify the author field:

    https://searchandfilter.com/documentation/action-filter-reference/#filter-input-object

    You would need to run a separate query on the users table to retrieve the IDs of the user type you want, and then use PHP array functions to remove IDs from the field list.

Viewing 3 posts - 11 through 13 (of 13 total)