Skip Navigation

[Resolved] Field not showing in content template

This thread is resolved. Here is a description of the problem and solution.

Problem:
Field not showing in content template - how to display repeating field with block

Solution:
You can use the "Repeating Field" Block to display the repeating custom field values.

You can find the proposed solution in this case with the following reply:
https://toolset.com/forums/topic/field-not-showing-in-content-template/#post-2034059

Relevant Documentation:
=> https://toolset.com/block-item/repeating-field/

This support ticket is created 3 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by winyS 3 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#2033815
Schermafbeelding 2021-04-27 om 09.03.33.png
Schermafbeelding 2021-04-27 om 09.04.45.png
Schermafbeelding 2021-04-27 om 09.05.18.png

I have created a custom field "Additional attachments". I assigned it to a custom post type "Cases".
The field doesn't show in my content template for Cases. I already tried clearing browser cache and cookies and open in incognito window but that didn't help.
All other fields work fine.
Recently I changed the name of the field and then deleted it and created the field again with another name.
Before yesterday there were already 2 files uploaded with in the old field I deleted. Maybe that causes the problem?
Any idea how to resolve this?

#2033899

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

This is really strange. The field should be displayed. Can you please tell me with what content template you are trying to display the field and send me admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2034059

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I checked on my install and I found that you set your field as Multiple Instance Field.

To display Multiple Instance Field, you should use "Repeating Field" Block.

#2034095

Thank you Minesh,

I set the display to "This field can have only one value", saved, and now the field displays in the content template.
However, I want to have the possibility to upload one or multiple files, so I need to select "Allow multiple instances of this field".
So I set it back to "Allow multiple instances of this field", saved, and now the field displays repeatable in the content template.

My issue is resolved now, thank you very much!

#2034097

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Glad to know that solution shared help you to resolve your issue. Please feel free to mark resolve this ticket.

#2034101

My issue is resolved now. Thank you!