I have a custom post type with custom fields.
In these posts there is a list of names.
There will then be another post of the same type for each of the names within the first post.
In the first post I want each name to link to it's own post.
So in the custom content template I would have something like...
Thank you for contacting Toolset Support. If you want to use the following code in Content Template, then you will need to add the static URLs (e.g. hidden link) and there is no shortcode for this:
[types field='name1url'] [/types]
I suggest you to use a better approach, using parent/child relationship. Create two Custom Post Types:
1. Parent post type = Main post (which display list of names)
2. Child Post Type = Names posts (which contains posts for each of the names)
3. Then create a View to list all child posts - Names with links (which is Rooms in the above example) >> And finally insert the View into your Main post (parent post).
My situation is a dog's pedigree that a visitor completes using a cred form.
They complete the cred form with various names of a pedigree, and would not be able to put in the static url.
I don't see how it could work as a parent / child shown in your link, unless I am simply not understanding it.
In my situation they are all dogs and can not be different post types, as per the examples in your link.
I attach a screen shot of a pedigree for one post, called Layla. You will see that there are several names of dogs, some of which are repeated. There will be a post for each of those names and it is that which I want to link to, so a person can click on 'Shavit Me Shaar Hagai' and be taken to that dog's page.
By the sound of what you are saying, this is not possible?
I understand your requirements, and I also tried to look for a better workaround but could not find anything matching to your case. It would need some custom coding to make it happen. We have some recommended list of service providers here if you would like to take a look: https://toolset.com/consultant/