Skip Navigation

[Resolved] Fields not archiving

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 3 replies, has 2 voices.

Last updated by Beda 7 years, 10 months ago.

Assisted by: Beda.

Author
Posts
#482101

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

#482252

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.

#482534
patientpost.jpg
patientphotoset.jpg
contenttemplate.jpg

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.

#483173

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/

The forum ‘Types Community Support’ is closed to new topics and replies.