# Arrange listing attributes in an order on admin dashbooard

**URL:** <https://community.hivepress.io/t/arrange-listing-attributes-in-an-order-on-admin-dashbooard/7469>\
**Category:** HivePress\
**Created:** [September 14, 2023, 2:26am UTC](https://community.hivepress.io/t/arrange-listing-attributes-in-an-order-on-admin-dashbooard/7469 "2023-09-14T02:26:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![marv](https://community.hivepress.io/letter_avatar_proxy/v4/letter/m/8e8cbc/32.png) [@marv](https://community.hivepress.io/u/marv)\
**Post date:** [September 14, 2023, 2:26am UTC](https://community.hivepress.io/t/arrange-listing-attributes-in-an-order-on-admin-dashbooard/7469/1 "2023-09-14T02:26:23Z")

</div>

Hi, I have 2 requests

1. I have 30 attributes on my listings, for easy accessibility and view, I want to rearrange them in a particular order, so that when I edit a listing on my dashboard the attributes are in that particular order on my dashboard. for easy view. and if possible group some attributes together.

2. I have a custom field that serve as a unique identifier for each listing, but when I search it in the search box provided on the backend for admin the result is not always accurate.

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [September 14, 2023, 7:15am UTC](https://community.hivepress.io/t/arrange-listing-attributes-in-an-order-on-admin-dashbooard/7469/2 "2023-09-14T07:15:00Z")

</div>

Hi,

1. Please check this topic [Changing attributes order in add listing and listing edit page - #5 by yevhen](https://community.hivepress.io/t/changing-attributes-order-in-add-listing-and-listing-edit-page/1338/5)

2. Please provide more details regarding this issue (e.g., your actions step by step with screenshots, etc.). This will help us to reproduce and resolve the issue faster.

---

<div class="post-metadata">

**Author:** ![marv](https://community.hivepress.io/letter_avatar_proxy/v4/letter/m/8e8cbc/32.png) [@marv](https://community.hivepress.io/u/marv)\
**Post date:** [September 14, 2023, 12:38pm UTC](https://community.hivepress.io/t/arrange-listing-attributes-in-an-order-on-admin-dashbooard/7469/3 "2023-09-14T12:38:48Z")

</div>

add\_filter(  
‘hivepress/v1/forms/listing\_update’,  
function( $form ) {

$form[‘fields’][‘title’][‘\_order’] = 1;  
$form[‘fields’][‘permalink’][‘\_order’] = 2;  
$form[‘fields’][‘images’][‘\_order’] = 3;  
$form[‘fields’][‘description’][‘\_order’] = 4;  
$form[‘fields’][‘price’][‘\_order’] = 5;  
$form[‘fields’][‘rental\_price\_postfix’][‘\_order’] = 6;  
$form[‘fields’][‘location’][‘\_order’] = 7;  
$form[‘fields’][‘city’][‘\_order’] = 8;  
$form[‘fields’][‘state’][‘\_order’] = 9;  
$form[‘fields’][‘zip\_code’][‘\_order’] = 10;  
$form[‘fields’][‘country’][‘\_order’] = 11;  
$form[‘fields’][‘bed\_frame’][‘\_order’] = 12;  
$form[‘fields’][‘bathrooms’][‘\_order’] = 13;  
$form[‘fields’][‘sale\_price\_postfix’][‘\_order’] = 14;  
$form[‘fields’][‘status’][‘\_order’] = 15;  
$form[‘fields’][‘additional\_features’][‘\_order’] = 16;  
$form[‘fields’][‘square-footage’][‘\_order’] = 17;  
$form[‘fields’][‘pets’][‘\_order’] = 18;  
$form[‘fields’][‘check-in’][‘\_order’] = 19;  
$form[‘fields’][‘check-out’][‘\_order’] = 20;  
$form[‘fields’][‘golf’][‘\_order’] = 21;  
$form[‘fields’][‘county’][‘\_order’] = 22;  
$form[‘fields’][‘community’][‘\_order’] = 23;  
$form[‘fields’][‘property\_owner\_name’][‘\_order’] = 24;  
$form[‘fields’][‘owner\_address’][‘\_order’] = 25;  
$form[‘fields’][‘owner\_contact\_number’][‘\_order’] = 26;  
$form[‘fields’][‘phone\_number\_2’][‘\_order’] = 27;  
$form[‘fields’][‘owner\_email\_address’][‘\_order’] = 28;  
$form[‘fields’][‘owner\_email\_adress\_2’][‘\_order’] = 29;  
$form[‘fields’][‘property\_id’][‘\_order’] = 30;  
$form[‘fields’][‘message\_to\_reviewer’][‘\_order’] = 31;  
$form[‘fields’][‘private\_notes’][‘\_order’] = 32;

return $form;  
},  
1000  
);

this is the code. but it is not working. can you pls check if something is wrong with it?

1. I need properties on my website to be searchable by an attribute on the backend ( property id)  
this seems to be working but most time it returns a wrong result. the property id for each listing is unique but it still some times return a result with a different property id.  
some times the search returns nothing

please note: this is working perfectly on the front end.

 ![Screenshot 2023-09-14 131523](https://community.hivepress.io/uploads/default/original/2X/6/68a63926e5d2a55d3166dd21540d0436079bec18.png)

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [September 15, 2023, 1:30pm UTC](https://community.hivepress.io/t/arrange-listing-attributes-in-an-order-on-admin-dashbooard/7469/7 "2023-09-15T13:30:04Z")

</div>

Hi,

1. The snippet looks good, but make sure you specify the field attribute correctly in the code. Also, add a snippet using this doc: [How to add custom code snippets - HivePress Help Center](https://help.hivepress.io/article/23-how-to-add-custom-code-snippets)

2. WordPress should search correctly if the attribute is marked as Indexable. Also, please note that this is a WP-level feature.

---

<div class="post-metadata">

**Author:** ![marv](https://community.hivepress.io/letter_avatar_proxy/v4/letter/m/8e8cbc/32.png) [@marv](https://community.hivepress.io/u/marv)\
**Post date:** [September 16, 2023, 10:41pm UTC](https://community.hivepress.io/t/arrange-listing-attributes-in-an-order-on-admin-dashbooard/7469/8 "2023-09-16T22:41:22Z")

</div>

HI Andrill. How about arranging attributes on admin dashboard ?  
I need this for easy view and access

 ![Screenshot 2023-09-15 071505](https://community.hivepress.io/uploads/default/original/2X/6/61f12593fc561aa80f989d38f16a23d0790e542d.png)

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [September 18, 2023, 12:16pm UTC](https://community.hivepress.io/t/arrange-listing-attributes-in-an-order-on-admin-dashbooard/7469/11 "2023-09-18T12:16:19Z")

</div>

Hi,

If you are referring to custom fields, they automatically accept the order that you specify in Listings \> Attributes. If you are referring to built-in fields, then only with the help of a custom implementation.

---

<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 18, 2023, 12:16pm UTC](https://community.hivepress.io/t/arrange-listing-attributes-in-an-order-on-admin-dashbooard/7469/12 "2023-10-18T12:16:26Z")

</div>

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