Unique number or ID

Please try this PHP snippet as a temporary solution. It will add the listing id above the listing title on the single listing page

add_filter(
	'hivepress/v1/templates/listing_view_page/blocks',
	function ($blocks, $template){
		$listing = $template->get_context('listing');
		
		if(!$listing){
			return $blocks;
		}
		
		return hivepress()->helper->merge_trees(
					[ 'blocks' => $blocks ],
					[
						'blocks' => [
							'page_content' => [
								'blocks' => [
									'listing_unique_id' => [
										'type'   => 'content',
										'content' => '<p>#'.$listing->get_id().'</p>',
										'_order' => 5,
									],
								],
							],
						],
				]
				)['blocks'];
	},
	1000,
	2
);
2 Likes