I'm making a consumer registration form.
In this process, consumers designate pharmacies.
There are many pharmacies with the same name that require consumers to search and choose pharmacies.
The way to distinguish this is to show the address field of the pharmacy together.
It's consumer post type "customer" slug.
The pharmacy post type is "pharmacy", the pharmacy name is "post Title", and the address field of the pharmacy post is "address1".
I understand the issue now. You're saying that you want a way to distinguish the different pharmacies because they can share the same titles.
Unfortunately the best way to resolve this is to add some additional information to the pharmacy title when its being created such as a number or Unique identifier. How are the pharmacy posts created?
If they are created from the frontend then we can use a hook to modify the title and add a unique ID at the end of the title.
I understood that it was difficult to show the fields of the post together.
I am currently adding and using content that can be distinguished from the pharmacy title. In this case, when making a list only with the name of the pharmacy, it often seems bad to users, so I asked for help.
Since it's hard, I'll slowly think of an alternative.