On Search form, only show fields that have been used

I know I can use the Hide Elements plugin to hide certain elements from search forms. But is there a straightforward way to make the dropdown menu for “Narrow By Fields” (on the advanced search form) only display those fields that actually have items that use those elements?

I’m reluctant to hide elements that might someday conceivably be needed on the admin side, but I’d rather not have the advanced search form list a huge number of fields that are always going to turn up nothing because no items have used them.

This topic was automatically closed after 250 days. New replies are no longer allowed.