I am using the Filter-Select to create a sorting functionality for my blog posts. I was not able to solve two things - maybe you can support.
The filter as a standard has “Select sort” as naming in the dropdown. Can this naming be changed?
The posts by default sort by “published date” - newest first. This is obviously one of the sorting options in the “Filter-Select” as well. It would hence make sense, to have this sorting displayed in the filter as the standard when visiting the blog site and not the “Select sort”. Is this possible?
Just to add to this - as my query loop is a grid with custom built product cards for woocommerce archive pages.
I want the default sorting to be by popularity (total sales) - I set “Popularity” as the Placeholder.
Then set the default sorting of the affected query loop to be by the total_sales meta key, as would be the default option of my sorting Select element. This way the placeholder matches the actual default sorting of the query and works as expected.
But it would definitely be nice if we had a “Default” switch on each option, to make it the default, and a Placeholder was an optional setting.
In this particular scenario, the expected behavior would be to have a default sorting option selected, rather than an empty placeholder. It’s not a contact form where you would want the select field to be empty by default.