Skip Navigation

[Resolved] Parametric filter by user role

This support ticket is created 7 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by David 7 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#525789

I am trying to add a custom filter to a parametric search in order to filter posts by User Role.

I found this thread that does something similar to filter by author:
https://toolset.com/forums/topic/parametric-search-by-author/

My view queries a post type ("resales") and I want visitors to be able to use the parametric search filter to select posts by authors with different roles, so the select dropdown would need to display the user roles that have authored those posts.

Thank you.

#525797

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi David,

Thank you for contacting our support forum.

Unfortunately this is not possible even though the link you provided has a similar solution but the exact solution for this would require alot more logic.

This is because with the author role filter you will need to join the Roles table and the Author information before comparing it to the posts.

We currently have an author filter for this but to filter by the authors role will be more difficult as such this would fall out of our support scope and I would recommend contacting one of our certified partners in order to get this done.

You can contact them by going to the link below.
https://toolset.com/consultant/

Thanks,
Shane

#525798

OK, thanks.