Skip Navigation

[Resolved] Repeatable group doesn't show data in view – although tutorial followed

This support ticket is created 2 years, 10 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 4 replies, has 2 voices.

Last updated by jesperA-2 2 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#2290997

I'm working with the Toolset blocks. Usually works great except I would really like a better nested Views solution...

So I've tried using repeatable group. I have a custom post type with a repeatable group. Works fine to insert data using a form.
But I need to display all rows as a list. To do this I've:
-Create a page with a view where I filter out the "parent" post object (konferensrum in this case) to a single post using a hardcoded postID.
-Create a new content template which uses konferensrum single object.
-Create a new view in the content template which lists the repeatable group.
-Create a grid in this view with Single Fields of the repeatable group.

I've followed your tutorial but I think it's a bug (or a corrupt view somehow).

When I edit the content template I can see the correct values of the repeatable group. So works in edit mode.
When I edit the parent page listing one konferensrum I do not see the values of the view with repeatable group. It just says No data. When trying to list another field of the custom post, konferensrum, it shows so I know the View does work.
When I edit the konferensrum I can see all the values of the repeatable group so I also know the post is correct.

I've isolated the problem to a single page + the content template. You may have access to the site if you email me directly.

If it's a corrupt view how can I check this and make sure it works?

#2291451

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Yes, sure. Let me have a look at it.

Can you please share problem URL and admin access details.

*** 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 have set the next reply to private which means only you and I have access to it.

#2291453

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Yes, sure. Let me have a look at it.

Can you please share problem URL and admin access details.

*** 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 have set the next reply to private which means only you and I have access to it.

#2291647

Minesh
Supporter

Languages: English (English )

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

It seems that view you created is somehow corrupted or not behaving as it should.

I've created the following view (using the classic view mode):
=> hidden link

And then I've added the above view using the "fields and text" block to your parent post's loop:
=> hidden link

I can see it does display the correct related repeating field group items. You can adjust the view's loop output that displays the posts from the repeating field group as required.

#2291685

My issue is resolved now. Thank you!

I didn't realise how easy it was to solve this by skipping creating the view from the UI ( which I still think must have a bug that corrupts the view sometimes) and just creating a view manually and attach it like you did. But it works!
Still recommend checking out the potential bug.