Add custom attributes to the search form

Hello, i want to add custom fields to search form block. The only thing I managed to do was add category and on listing page i added fields from listing attributes but they didn’t display on homepage on search form block.


You can add new custom fields in WP Dashboard > Listings > Attributes and mark them Searchable; please check this doc: How to add listing attributes - HivePress Help Center. If this issue exists, please disable third-party plugins and customizations (if there are any) and check if this issue persists. If you use a caching plugin, ensure that caching is disabled for logged-in users.

​I hope this is helpful to you.

Ok, it works if i add this attribute to all categories, or when category is selected then clicked search. But on homepage works only if attribute is for all categories, because the form doesnt update when, category is changed. I have two ideas but don’t know how do it:

  1. The form is update when user change selects
  2. Select default category then attributes will show (It’s not a perfect solution, but it’s enough for me)


Yes, if you have restricted the attribute to categories, unfortunately, you need to click search for the page to refresh and show the attributes bound to the category, but we plan to add automatic refresh in future updates.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.