Skip Navigation

[Resolved] Repeating Fields index

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

Problem:

Custom multiple instance field, the "index" attribute does not work.

[types field="testfield" index="1"][/types] shortcode in content template

I expected to see: single value

Instead, I got: all values

Solution:

It should be a bug of Types beta plugin.

Currently, please try Views shortcode instead of Types shortcode, for example:

[wpv-post-field name="wpcf-testfield" index="1"]

Relevant Documentation:

https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-field

This support ticket is created 6 years, 9 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#640806
Firefox_Screenshot_2018-04-10T01-13-18.516Z.png

I am trying to:
[types field="testfield" index="1"][/types] shortcode in content template

Link to a page where the issue can be seen:
hidden link

I expected to see:
single value

Instead, I got:
all values

#641294

Hello,

It should be a bug of Types beta plugin, I can duplicate same problem in my localhost with the Types beta plugin 3.0-b1, and I will escalate it to our developers.

Currently, please try Views shortcode instead of Types shortcode, for example:
[wpv-post-field name="wpcf-testfield" index="1"]

#645162

Thanx!

#646248

You are welcome