Generate a listing number for each listing?

I have no way of identifying a listing without the hotel or guest house name being part of the Listing name.

The current Listing name is what Users/Guests see.

This undermines the system business objective as Guests then just contact and book with the Host directly.

Each listing needs a system generated listing number, which appears on the WP dashboard Listings and Bookings pages . How do I achieve this.

Hi,

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?

Hi,

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

I hope it helps

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.

Hi,

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

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