Linux 软件免费装

Faceted Search for Ultimate Member

开发者 userelements
更新时间 2026年6月16日 10:24
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

filters ultimate-member user-search member-directory faceted-search

下载

1.0.2

详情介绍:

Faceted Search for Ultimate Member adds a configurable filter sidebar to any Ultimate Member member directory. Visitors combine filters on profile fields — country, industry, skills, job title, or any custom UM field — and see matching members update instantly over AJAX. The plugin hooks into Ultimate Member's native member directory (um_get_members), so member cards, pagination, sorting, and keyword search keep working as before. Facet counts refresh in real time as filters are applied, showing how many members match each option. Key features Who is this for? Front-end experience Admin configuration Configure everything under Ultimate Member → Member Directory → Add/Edit, in the Faceted Search metabox: No shortcode is required — the filter sidebar appears automatically on directories where faceted search is enabled. How it works
  1. Enable faceted search on a Member Directory and choose which profile fields become filters.
  2. When a visitor opens that directory, the filter sidebar renders alongside the member grid.
  3. Each filter selection is sent with Ultimate Member's member query.
  4. The member list updates via AJAX; facet counts recalculate for the current filter combination.
  5. Only members matching all active filters are shown.
For developers Hooks and filters for customization:

安装:

  1. Install and activate Ultimate Member (required).
  2. Upload the faceted-search-for-ultimate-member folder to /wp-content/plugins/, or install from the WordPress Plugins screen.
  3. Activate Faceted Search for Ultimate Member through the Plugins menu.
  4. Go to Ultimate Member → Member Directory and open an existing directory or create a new one.
  5. In the Faceted Search metabox, check Enable Faceted Search.
  6. Click Add Facet and configure at least one filter (see below).
  7. Update the directory, then open its front-end page to preview the filter sidebar.
Setting up your first facet Facets use Ultimate Member profile field meta keys — the internal key from your UM registration or profile forms.
  1. In Ultimate Member → Forms, note the meta key of a field you want to filter by (e.g. country, gender, skills).
  2. Edit your Member Directory and open the Faceted Search metabox.
  3. Click + Add Facet.
  4. Enter the Meta Key exactly as it appears in the UM form.
  5. Enter a Label visitors will see (e.g. "Country").
  6. Choose a UI type (checkbox, radio, dropdown, tag cloud, numeric range, or date range).
  7. Drag rows to reorder facets if you add more than one.
  8. Save the directory and use Preview directory to test on the front end.
Tip: Fields with a manageable set of distinct values work best — countries, job titles, categories, or select/radio options. Long free-text fields (biographies, descriptions) are not suitable as facets.

屏幕截图:

  • Facet configuration metabox on the Member Directory edit screen

升级注意事项:

1.0.2 All facet UI types are now included in the free plugin. Update to enable radio, dropdown, tag cloud, and range filters.

常见问题:

Does this plugin require Ultimate Member?

Yes. Faceted Search for Ultimate Member requires Ultimate Member and its Member Directory feature. The plugin deactivates itself if Ultimate Member is not active.

Where do I configure facets?

Go to Ultimate Member → Member Directory, then add or edit a directory. The Faceted Search metabox is on the directory edit screen.

Do I need a shortcode?

No. Once faceted search is enabled on a directory, the filter sidebar is injected automatically on that directory's front-end page.

Which profile fields can I use as facets?

Any Ultimate Member user meta key that stores filterable data — typically text, select, radio, checkbox, multiselect, date, or number fields. The plugin auto-detects field types from your UM forms. Passwords, file uploads, URLs, biographies, and other sensitive or unsuitable meta are blocked.

How do I find the correct meta key?

Open the UM form that contains the field, check its meta key in the field settings, or start typing in the admin Meta Key field for autocomplete suggestions from UM fields and user meta.

Does filtering reload the page?

No. Member results update through Ultimate Member's AJAX member directory. Visitors stay on the same page while filters are applied.

What do the numbers next to filter options mean?

Those are live facet counts — how many members in the current result set have that value. Counts update whenever filters change.

Can visitors combine multiple filters?

Yes. Multiple active facets use AND logic: members must match all selected filters to appear in the results.

What UI types are available?

Checkbox list, radio list, dropdown, tag cloud, numeric range, and date range. Each facet can use a different UI type.

Can I show different facets to different user roles?

Yes. Use Visible to Roles in each facet's advanced options. Leave all roles unchecked to show the facet to everyone.

Does faceted search work with Ultimate Member's directory search?

Yes. Facet filters combine with UM's keyword search, native directory filters, sorting, and pagination.

Will this slow down my directory?

Unfiltered facet counts are cached for a few minutes and refreshed when relevant user meta changes. For very large member bases, developers can tune performance with the um_fs_facet_max_users filter. A notice appears if counts may be incomplete on large directories.

Can visitors share a filtered view?

Yes, when URL State Persistence is enabled. Active filters are stored in the URL query string so the view can be bookmarked or shared.

更新日志:

1.0.2 1.0.1 1.0.0