Skip Navigation

[Resolved] Split: Displaying multi-item fields as separate list items – li not rendering on specific page

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

Problem:
How to display repeating field with Types shortcode

Solution:
You can use "separator" with types shortcode to display repeating field.

For example:

<ul class="list-award">
  <li>[types field='awards' separator='</li><li>'][/types]</li>
</ul>

Relevant Documentation:
https://toolset.com/documentation/user-guides/repeating-fields/#Displaying%20Repeating%20Fields

This support ticket is created 6 years, 1 month 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 3 replies, has 2 voices.

Last updated by johnB-37 6 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1124330

Hi there,
Me again. So I had one additional question. The solution works great, except on this page:
hidden link

if you scroll down to the Awards section, you will see there are four values for the field displayed, but the first one does not have a list item tag around it, but it is in unordered list.

Thanks for any help!

#1124331

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - could you please share access details so I can check whats going wrong there.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

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

#1124601

Minesh
Supporter

Languages: English (English )

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

Well - you did not apply the correct code.

I've adjusted code as given under:

<h4>Awards</h4>
<ul class="list-award">
  <li>[types field='awards' separator='</li><li>'][/types]</li>
</ul>

I see its working fine:
=> hidden link

Could you please confirm.

#1124608

Thanks Minesh, very quick service, I appreciate it!