# Change number of columns on listings page?

**URL:** <https://community.hivepress.io/t/change-number-of-columns-on-listings-page/17828>\
**Category:** HivePress\
**Tags:** code\
**Created:** [July 6, 2026, 10:41pm UTC](https://community.hivepress.io/t/change-number-of-columns-on-listings-page/17828 "2026-07-06T22:41:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Knode](https://community.hivepress.io/letter_avatar_proxy/v4/letter/k/e68b1a/32.png) [@Knode](https://community.hivepress.io/u/Knode)\
**Post date:** [July 6, 2026, 10:41pm UTC](https://community.hivepress.io/t/change-number-of-columns-on-listings-page/17828/1 "2026-07-06T22:41:16Z")

</div>

The default shows two columns. Am I able to increase this to 4 on the listings page, or is this only available when adding the listings block to a regular page?

---

<div class="post-metadata">

**Author:** ![ChrisB](https://community.hivepress.io/user_avatar/community.hivepress.io/chrisb/32/14185_2.png) [@ChrisB](https://community.hivepress.io/u/ChrisB)\
**Post date:** [July 6, 2026, 11:17pm UTC](https://community.hivepress.io/t/change-number-of-columns-on-listings-page/17828/2 "2026-07-06T23:17:28Z")

</div>

Hi @Knode,

I haven’t tested this snippet myself, but HivePress AI suggested this:

```php
add_filter(
	'hivepress/v1/templates/listings_view_page',
	function( $template ) {
		return hivepress()->helper->merge_trees(
			$template,
			[
				'blocks' => [
					'listings' => [
						'columns' => 4,
					],
				],
			]
		);
	}
);

```

You can use a plugin like [Code Snippets](https://share.google/kr2msLL7ou3fxydtO) to easily add the PHP snippet.

Alternatively, you can [override the template](https://share.google/46bKwJT1hAhdhXVy9), rebuild the default layout, and customize the number of columns. This allows you to completely customize the page if you want to make further changes, too.

I hope this helps!

Edit: see [this topic](https://community.hivepress.io/t/howto-setup-listing-page-into-3-or-4-collumn-instead-of-default-2/16749), re: confirmed solution & changes for mobile, too.

Cheers,  
Chris ✌

---

<div class="post-metadata">

**Author:** ![Knode](https://community.hivepress.io/letter_avatar_proxy/v4/letter/k/e68b1a/32.png) [@Knode](https://community.hivepress.io/u/Knode)\
**Post date:** [July 6, 2026, 11:27pm UTC](https://community.hivepress.io/t/change-number-of-columns-on-listings-page/17828/3 "2026-07-06T23:27:47Z")

</div>

> [@ChrisB](#):
>
> ```auto
> add_filter(
> 'hivepress/v1/templates/listings_view_page',
> function( $template ) {
> return hivepress()->helper->merge_trees(
> $template,
> [
> 'blocks' => [
> 'listings' => [
> 'columns' => 4,
> ],
> ],
> ]
> );
> }
> );
> 
> ```

That worked! thank you!

---

<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:** [August 5, 2026, 11:28pm UTC](https://community.hivepress.io/t/change-number-of-columns-on-listings-page/17828/4 "2026-08-05T23:28:20Z")

</div>

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