This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: ERROR AjaxSearchPro: include post_user_filter not working

Home Forums Product Support Forums Ajax Search Pro for WordPress Support ERROR AjaxSearchPro: include post_user_filter not working Reply To: ERROR AjaxSearchPro: include post_user_filter not working

#30090
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

The $args[‘post_user_filter’] filter is to be used with user ID’s, and not user names. The argument is passed on to the query to check the wp_posts.post_author field, which is the user ID and not the user name.

If you passed on a user name there, it may seem to work, as the query was comparing user author names against a number ID field – but it never matched.