Please clarify, do you need to display the listing post ID (which can be viewed in Listings > Edit Listing in the URL)? Or do you want to create a new function to assign a listing ID?
If you have generated titles based on the Title Format that you set in HivePress > Settings, then try using this %listing.id% token.
If you need to add the ID to the custom title that the user specifies at the end, you can overwrite it through the child theme listing/view/page/listing-title.php, listing/view/block/listing-title.php template parts and customize it there, for example by adding <?php echo esc_html($listing->get_id()); ?>How to override template parts - HivePress Help Center
Hi Adrij you have lost me a bit.
Listing Title in Hivepress Settings currently allow for no setting or %listing% or %host% I started with no setting. If I choose Listing how do I generate a title? and where and I how do I use %listing.id% Do I create an attribute called %listing .id% and what type of field should that be.
Please note that you do not need to add new attributes. You just need to specify the %listing.id% token in HivePress > Settings > Listings > Title, and each new listing will generate a title based on the ID (i.e. if you have a listing with ID 100, then the title will show 100). For more information, please see this documentation: How to generate listing titles automatically - HivePress Help Center