- This topic has 2 replies, 2 voices, and was last updated 9 years, 8 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Problem Add author fields | 500 internal Server Error
Tagged: error 500, filter, search author
HI, I have this problem every time I add the author field, i get 500 Internal Server Error.
It is not, if the number of users who handle (15,000 users).
I check your code, and I see that bring all users. You should have only users with role of author?
How can I solve this problem?
Hi sir Trevor,
Problem solved!. I worked what I wrote, but now I have the problem that I deployed all users.
Also solve it by adding a line of code, in file: / > public > includes > class-search-filter-author-object-walker.php
#code line 42.
$query_args[‘role’] = ‘bloggers’; //in my case
Documentation supporting me in wordpress.
https://codex.wordpress.org/Function_Reference/get_users
NOTA:
It would be good if this option “roles” is added in the advanced options of the author field
thanks and regards!
Now you can close the post!