# Hide map from search listing view

**URL:** <https://community.hivepress.io/t/hide-map-from-search-listing-view/17259>\
**Category:** Geolocation\
**Tags:** code\
**Created:** [December 17, 2025, 4:58am UTC](https://community.hivepress.io/t/hide-map-from-search-listing-view/17259 "2025-12-17T04:58:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![likid91257](https://community.hivepress.io/letter_avatar_proxy/v4/letter/l/bc8723/32.png) [@likid91257](https://community.hivepress.io/u/likid91257)\
**Post date:** [December 17, 2025, 4:58am UTC](https://community.hivepress.io/t/hide-map-from-search-listing-view/17259/1 "2025-12-17T04:58:30Z")

</div>

What is the the difference between this 2 codes. I cant find the difference to acheive my goal:

```auto
add_filter(
	'hivepress/v1/templates/listings_view_page',
	function( $template ) {
		hivepress()->template->fetch_block( $template, 'listing_map' );

		return $template;
	},
	1000
);

```

```auto
add_filter(
	'hivepress/v1/templates/listings_view_page',
	function( $template ) {
		return hivepress()->helper->merge_trees(
			$template,
			[
				'blocks' => [
					'listing_map' => [
						'type' => 'content',
					],
				],
			]
		);
	}
);

```

---

<div class="post-metadata">

**Author:** ![kseniia](https://community.hivepress.io/user_avatar/community.hivepress.io/kseniia/32/13513_2.png) [@kseniia](https://community.hivepress.io/u/kseniia)\
**Post date:** [December 17, 2025, 1:28pm UTC](https://community.hivepress.io/t/hide-map-from-search-listing-view/17259/2 "2025-12-17T13:28:24Z")

</div>

Hi,

These snippets hide the map on the listings page — they are simply two different approaches that achieve the same result.

Could you please share a bit more detail about what you’re trying to accomplish? We’ll do our best to help.

---

<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:** [January 16, 2026, 1:28pm UTC](https://community.hivepress.io/t/hide-map-from-search-listing-view/17259/3 "2026-01-16T13:28:40Z")

</div>

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