Search results not working properly

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)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.