# How to move tags or an specific category to the top

**URL:** <https://community.hivepress.io/t/how-to-move-tags-or-an-specific-category-to-the-top/1703>\
**Category:** Tags\
**Tags:** tags\
**Created:** [September 7, 2022, 8:17pm UTC](https://community.hivepress.io/t/how-to-move-tags-or-an-specific-category-to-the-top/1703 "2022-09-07T20:17:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matmakino](https://community.hivepress.io/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@Matmakino](https://community.hivepress.io/u/Matmakino)\
**Post date:** [September 7, 2022, 8:17pm UTC](https://community.hivepress.io/t/how-to-move-tags-or-an-specific-category-to-the-top/1703/1 "2022-09-07T20:17:16Z")

</div>

![d9c54545-e229-44f6-be7b-fadb22b4c748](https://community.hivepress.io/uploads/default/original/2X/7/7ed52d386476054dbb11de7a06da7d2b23a930c9.jpeg)

Hi how can I move tags or an specific category to the top or change the order in which they are placed on the filter bar.

---

<div class="post-metadata">

**Author:** ![yevhen](https://community.hivepress.io/user_avatar/community.hivepress.io/yevhen/32/23_2.png) [@yevhen](https://community.hivepress.io/u/yevhen)\
**Post date:** [September 8, 2022, 10:21am UTC](https://community.hivepress.io/t/how-to-move-tags-or-an-specific-category-to-the-top/1703/2 "2022-09-08T10:21:01Z")

</div>

Please try this PHP snippet to move the tags field to the top. In this way, it is possible to change the order for other fields in the listing filter form

```auto
add_filter(
	'hivepress/v1/forms/listing_filter',
	function( $form ) {
		if ( isset( $form['fields']['tags'] ) ) {
			$form['fields']['tags']['_order'] = 1;
		}

		return $form;
	},
	1000
);

```

---

<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 8, 2022, 10:21am UTC](https://community.hivepress.io/t/how-to-move-tags-or-an-specific-category-to-the-top/1703/3 "2022-10-08T10:21:17Z")

</div>

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