The price without /night

Hi @BernardC,

You can remove this using the following code snippet:

<?php
add_filter(
	'hivepress/v1/models/listing/fields',
	function( $fields, $model ) {
		if ( isset( $fields['price'] ) ) {
			$fields['price']['display_template'] = '%value%';
		}

		return $fields;
	},
	1000,
	2
);

If you’re unsure how to add code snippets, please check out this article:

I hope this helps!

Edit: if the above snippet doesn’t work, kindly try the other suggestions I provided here:

Cheers,
Chris :victory_hand:

1 Like