I am trying to: archive a custom field to help display image on a template set up in views
I visited this URL: hidden link
I expected to see: when you click on a patient it should display images for that patient
Instead, I got: nothing at all the template is not working correctly
Custom Fields cannot have archives.
Archives are for authors, Posts and Taxonomies.
I assume "Patient" is a Post Type?
You seem to link to the Single Post of that Patient.
So what you need is to add a Content Template to that Post Type and in there, you can add all Fields you want to show for the single Patient.
https://toolset.com/documentation/user-guides/view-templates/
This will then display those Fields when the Single Patient is called.
Thanks for the reply and I am still trying to figure out how the site was designed. The post type patient is using a content template but does not seem to be working properly and. I will add some screenshots that will hopefully give a better understanding of what's going on.
You seem to use a very old Toolset version?
Can you check to update with this versions?
https://toolset.com/account/downloads/
Then, can you make a simple test:
1. Remove everything from the content Template and add only this:
"I can see this"
2. Save it and visit a Post where the template should be applied
3. Can you see the output "I can see this"?
If not, please follow this guide:
https://toolset.com/documentation/user-guides/editing-view-templates/theme-support-for-content-templates/
If yes, then every single line you add to the Template will be output.
If your fields are not, it means the ShortCodes are probably wrong.
Here is more info:
https://toolset.com/documentation/user-guides/displaying-wordpress-custom-fields/