Any filter result that does not have a few of the ratings, the full list does not show, despite the wpv-control-postmeta display_values being set in the shortcode.
Hi there,
Would you please click the previous message to show the hidden chat and see my answers there?
I also uploaded many screenshots showing the results.
So I think I see everything works ok.
If I miss something I'd appreciate it if you can give more context.
thanks.
Hi Christopher,
[code]
[wpv-control-postmeta display_values="5 Stars,4 Stars,3 Stars,2 Stars,1 Star,All Stars" values="5,4,3,2,1,All Stars" field="wpcf-testimonial-course-stars" type="radios" source="custom" class="filter-select-stars" label_class="filter-star-list" url_param="wpv-wpcf-testimonial-course-stars"]
[/code]
Not all Reviews have all ratings, so the Views filter doesn't show all the selection options for certain filter combinations. The idea is to have a uniform form filter with all 5 star option selections regardless of the whether there are any reviews for all the ratings from 1-5. Is that not the idea behind the display_values="5 Stars,4 Stars,3 Stars,2 Stars,1 Star,All Stars" → It will display 'these' options for selection?
Additionally, I added the 'All Stars' option (which is never recorded in the custom field) so a visitor can reset the Stars selection.
This is a common use case I'm trying to implement, I'm sure it shouldn't be so hard??? It seems to me that display_values is not working as advertised?
Hi there,
If you'd like to search through the "ratings" so that only the results that contain all the selected ratings are shown, you'll need to add the "ratings" as a custom taxonomy, instead of a custom field.
In a taxonomy search, it is possible to set the search type to either "All" (AND) or "Any" (OR), but in a custom field search, it uses only the "Any" (OR) operation.
You'll find the setting for the search type in the view's "Query Filter" section. In the taxonomy filter, you'll see that you'll have the option to select the search type to "any of the values" (OR), "not one of the values" (EXCLUDE), or "all of the values" (AND).
I hope I understand the issue that you are experiencing If not I'd appreciate it if you use loom.com to create a video of the issue so I can understand.
Thanks.