How to add vendor profile fields
If you want to add custom vendor profile fields (in HivePress, they are called "attributes"), you can do that in the WP Dashboard > Vendors (Hosts) > Attributes > Add New section.
Each attribute can be customized in several different contexts: Editing, Search, and Display. We’ll cover each context and its settings below.
Editing
- Editable - if this is enabled, vendors will be able to edit this field on the front end;
- Field Type - here, you can choose the attribute type like URL, Text, Checkbox, etc.;
- Description - you can add the attribute description if it's unclear (it will appear below the attribute title);
- Placeholder - here, you can set the text that will be displayed in the attribute field as a hint until you enter the actual value.
Search
- Filterable - enable it if you want to allow website visitors to use this attribute value as a search filter for vendors;
- Indexable - enable it to allow searching the attribute value via keyword search on your website;
- Sortable - if enabled, the website visitors will be able to sort user profiles by the attribute value (e.g., sort user profiles by the years of work experience);
- Field Type - here, you can specify how the filter will be displayed in the sidebar.
Display
- Areas - here, you can define where your attribute will appear on a vendor profile template (please check the picture below to get a better idea of the template areas);
- Icon - here, you can set an icon for your attribute;
- Format - here, you can set how the attribute will look on the front end using existing tokens or additional HTML code (e.g., you can set your custom field as a link using this format
<a href="%value%">Custom link</a>
)
Once you publish your attribute, all new vendors on your website will have to fill out this profile field.