# Create listing with multiple categories on front-end

**URL:** <https://community.hivepress.io/t/create-listing-with-multiple-categories-on-front-end/12384>\
**Category:** HivePress\
**Tags:** code\
**Created:** [September 30, 2024, 4:30pm UTC](https://community.hivepress.io/t/create-listing-with-multiple-categories-on-front-end/12384 "2024-09-30T16:30:12Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![lehner\_andreas](https://community.hivepress.io/user_avatar/community.hivepress.io/lehner_andreas/32/8465_2.png) [@lehner\_andreas](https://community.hivepress.io/u/lehner_andreas)\
**Post date:** [September 30, 2024, 4:47pm UTC](https://community.hivepress.io/t/create-listing-with-multiple-categories-on-front-end/12384/5 "2024-09-30T16:47:42Z")

</div>

I managed by adding  
unset( $form[‘fields’][‘categories’][‘attributes’][‘data-multistep’] );

to the snippet:

```auto
add_filter(
	'hivepress/v1/forms/listing_submit',
	function( $form ) {
		if(isset($form['fields']['categories'])){
			$form['fields']['categories']['multiple'] = true;
			unset( $form['fields']['categories']['attributes']['data-multistep'] );

		}
		return $form;
	},
	1000
);

```

---

_[View the full topic](https://community.hivepress.io/t/create-listing-with-multiple-categories-on-front-end/12384)._
