Skip Navigation

[Resolved] Repeater field shows same information on all posts

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

Problem:

Query related items of repeatable field groups.

Solution:

Toolset repeatable field groups are based on one-to-many relationship, you can follow below document to query related items, for example:

Create a post view

- Query your "repeatable field groups" posts

- Filter by post type relationship of your "repeatable field groups"

Relevant Documentation:

https://toolset.com/course-lesson/displaying-related-posts/

This support ticket is created 2 years, 11 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 2 replies, has 2 voices.

Last updated by erikD-7 2 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#2228521

Tell us what you are trying to do?
Insert information from a repeater field into an accordion that is unique to each post entry.

Is there any documentation that you are following?
Classic view editor

Is there a similar example that we can see?

[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<div id="accordion">
<wpv-loop>
<div class="panel"> <!-- first panel -->
<div class="acc-header"><h3>[types field='offering-name'][/types]</h3></div>
<div class="acc-body"><p>[types field='offering-description' output='raw'][/types]</p></div>
</div>
</wpv-loop>
</div>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
<p>Coming soon!</p>
[/wpv-no-items-found]
[wpv-layout-end]

What is the link to your site?

This page is the one for which the repeater content is intended: hidden link
All other entries also show the same content: hidden link

Thanks!
Erik

#2228591

Hello,

I assume we are talking about "repeatable field groups", Toolset repeatable field groups are based on one-to-many relationship, you can follow above document to query related items, for example:
Create a post view
- Query your "repeatable field groups" posts
- Filter by post type relationship of your "repeatable field groups"
See screenshot:
hidden link

More help:
https://toolset.com/course-lesson/displaying-related-posts/

#2230417

My issue is resolved now. Thank you!