Skip Navigation

[Resolved] Filter items without repeating in views

This support ticket is created 3 years, 1 month 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.

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

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 1 reply, has 2 voices.

Last updated by Jamal 3 years, 1 month ago.

Assisted by: Jamal.

Author
Posts
#1994677

Hello, how is everything?

I need help.

I have a CPT called property.

In this CPT, we have the custom fields:
street, neighborhood, city and state (all text type)

I created a view to display some values, example:

A view that shows all the streets of the registered properties.

However, the view shows repeated results, example: 2 buildings on the same street, will bring repeated streets.

How can I filter the view to bring only unique values?

I'm waiting.

Thanks

#1995151

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello and thank you for contacting the Toolset support.

I believe that you are looking to group the results by the value of the custom field. That's not available within the Toolset features. You will need to build a custom shortcode for that. Check this tutorial where we try to group results by year and month, you can produce a similar shortcode where you group your results by that custom field, and where you display it once without duplication on each post of the results.
https://toolset.com/2013/10/how-to-group-views-results-by-year-and-month/

The trick is to sort the results by that custom field.

I hope this helps. Let me know if you have any questions.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.