Skip Navigation

[Closed] How to filter posts by author? (Like it does by custom field value)

This support ticket is created 7 years, 3 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
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Noman 7 years, 2 months ago.

Assisted by: Noman.

Author
Posts
#483692

I am trying to: search across the support forum

I visited this URL:

I expected to see:

Instead, I got:

#483780

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Maksim,

Thank you for contacting Toolset Support. Can you please explain more about your requirement?, Whether you want to filter posts at the runtime (i.e. Display Posts on the page already filtered by an Author) OR you want the user to filter the posts using dropdown selection or checkboxes for the Author names?

1. To filter posts by an Author, before they are displayed -- please setup filters like explained here: https://toolset.com/documentation/user-guides/filtering-views-query-by-author/

2. To filters posts by an Author using a Custom Search Form -- if you want to allow users to filter posts by Authors through a form or dropdown selection or checkboxes (parametric search form). You can add filters to your search form by following this doc:
https://toolset.com/documentation/user-guides/getting-started-views/part-7-building-a-parametric-search-with-views/

-- Please note Custom Search Filters don’t allow to filter by WP standard post fields (including post_author), you can only filter by Custom Fields and Taxonomies.

- What you can do, is create custom Taxonomy or a custom Post Fields Group using Types according to your Authors, and then add a dropdown or checkbox form filter to search those fields or taxonomies:
https://toolset.com/documentation/user-guides/create-custom-taxonomies/
https://toolset.com/documentation/user-guides/using-custom-fields/
https://toolset.com/documentation/user-guides/front-page-filters/

Please try the above methods and let us know how it goes.
Thank you

The topic ‘[Closed] How to filter posts by author? (Like it does by custom field value)’ is closed to new replies.