I need to add/publish a unique reference number to every CPT and would like to use the post ID.
Can you please talk me through how to do this using a custom field?
Many thanks in advance
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+01:00)
Hi there
Sorry, could you clarify what you are aiming for?
You have a unique reference number (from somewhere) and you'd like to store that value in a custom field?
Or you'd like to use the unique post ID as the reference number and store it in a custom field? (Although, why would you do that, if you already have a unique post ID?)
Or something else?
And what is the context for where/when this happens?
This is for a real estate site that will be importing properties from various sources and there is a high propbablity of duplicate reference numbers. So to avoid potential duplicates, I would like to use the post ID as the reference number that is published for each property.