How to add listing attributes

If you want to add custom listing fields (in HivePress, they are called “attributes”), you can do that in the WP Dashboard > Listings > Attributes > Add New section. Custom attributes are useful for capturing details specific to your niche, for example, a real estate website might add attributes like Number of Bedrooms or Square Footage.

Each attribute can be customized across several contexts: Editing, Search, and Display. These control if the attribute appears in the listing submission form, can be used as a search filter, and is shown on the listing page.

You can also make attributes category-specific. In the right sidebar, assign the attribute to one or more listing categories, if no categories are selected, the attribute will be available for all categories. If you have category-specific attributes, they will only appear once the corresponding category is selected: in the listing submission form, the relevant fields will be shown based on the chosen category, and in the filter form, category-specific attributes will only be displayed once a category is selected, keeping the filter form clean and uncluttered.

We’ll cover each context and its settings below.

Editing

  • Editable — if this is enabled, users will be able to edit this field on the front end;
  • Moderation — if this is enabled, website admins will have to manually approve any changes to this attribute (e.g., if a user changes some value, the admin approval will be required);
  • 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.

Additional fields may appear depending on the selected Field Type. For example, choosing Select will add an Edit Options field to define the available choices, while choosing Number will add Min Value and Max Value fields to restrict the allowed range.

  • Filterable — enable it if you want to allow users to use this attribute value as a search filter for listings;
  • Indexable — enable it if you want to allow users to find this attribute value via keyword search;
  • Searchable — enable this option if you want to allow users to use this attribute value as an option to search for listings in the search bar (appears when a field type that supports search is selected in this section);
  • Sortable — allows users to sort listings using the attribute value;
  • Field Type — here, you can specify how the filter will be displayed in the sidebar.

Display

  • Related — enable this option to suggest related listings based on this attribute’s value;
  • Areas — here, you can define where the attribute will appear on the listing 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 it as a link <a href="%value%">Custom link</a> )
Listing attributes settings

The screencast below shows the process of adding listing attributes.