# How to add custom attributes to search bar

**URL:** <https://community.hivepress.io/t/how-to-add-custom-attributes-to-search-bar/7427>\
**Category:** HivePress\
**Created:** [September 11, 2023, 2:37pm UTC](https://community.hivepress.io/t/how-to-add-custom-attributes-to-search-bar/7427 "2023-09-11T14:37:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hayamasa](https://community.hivepress.io/letter_avatar_proxy/v4/letter/h/b5ac83/32.png) [@hayamasa](https://community.hivepress.io/u/hayamasa)\
**Post date:** [September 11, 2023, 2:37pm UTC](https://community.hivepress.io/t/how-to-add-custom-attributes-to-search-bar/7427/1 "2023-09-11T14:37:00Z")

</div>

![Searchable001](https://community.hivepress.io/uploads/default/original/2X/4/4e2f3352a49688ca870d3b21ad2a84e1c8d03c03.jpeg)  
to  
 ![Searchable002](https://community.hivepress.io/uploads/default/original/2X/2/226885619b44a0f31badd3603310153fa75342b1.jpeg)

> [@How to add custom attributes to search bar](https://community.hivepress.io/t/how-to-add-custom-attributes-to-search-bar/4000):
>
> How can I add custom attribute to the search bar? Current I can search only by categories, keywords and locations but I would like to add a custom attribute.

You can add a custom attribute and mark it as Searchable, then it will show up at the main search bar.

It seems that this issue has already been resolved, but I lacked the knowledge to understand it.

Could you please provide specific instructions on how to mark it as searchable?  
Please specify which items are relevant and need to be modified or added.

---

<div class="post-metadata">

**Author:** ![shimazakinori](https://community.hivepress.io/user_avatar/community.hivepress.io/shimazakinori/32/6329_2.png) [@shimazakinori](https://community.hivepress.io/u/shimazakinori)\
**Post date:** [September 12, 2023, 12:23am UTC](https://community.hivepress.io/t/how-to-add-custom-attributes-to-search-bar/7427/2 "2023-09-12T00:23:32Z")

</div>

> [@hayamasa](#):
>
> Please specify which items are relevant and need to be modified or added.

Hi!

In your wordpress panel you’ll find a button listings\>attributes.

Inside, find your attribute, and somewhere inside the settings for that attribute you will find a box you can check for indexing it into the search like so:

 ![Screenshot 2023-09-11 at 8.19.34 PM](https://community.hivepress.io/uploads/default/original/2X/0/096a45a0c71aa76c38fce1c79e5003efc30e110c.png)

Your image suggest the desired attribute is a location, and you can treat this as a different type of information. You can just install the geolocation plugin from hivepress and it will become available in the search box, if I am not mistaken.

Geolocations are informations related to a listings but it’s not an attribute per se like the custom attributes you can add to your listing (for example: Color of a home, or Time Flexible for a service)

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [October 12, 2023, 12:23am UTC](https://community.hivepress.io/t/how-to-add-custom-attributes-to-search-bar/7427/3 "2023-10-12T00:23:38Z")

</div>

Closed on October 12, 2023, 12:23am UTC

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