Skip Navigation

[Resolved] querying from a repeatable filed in a view

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 grayhamA 1 year, 1 month ago.

Assisted by: Minesh.

Author
Posts
#2657619
toolset-viewloop.jpg

Tell us what you are trying to do?
I have a custom post with a repeating field.
I wish to use a different custom post with a view to display a specified (using url params) group of fields from the multiple repeated groups in a users post.
I am unable in the view creation to find any of the fields in the repeatable group to dynamically display. Is there some where I can create a query with conditions?
Is this possible?

Is there any documentation that you are following?
googled toolset examples
Is there a similar example that we can see?

What is the link to your site?
backend only

#2657637

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Based on the screenshot you shared I can see that you have repeating field group created and you want to display the repeating field group items. To display the repeating field group items you will require view.

If you have top level view that displays the post then you will have to create nested view.

Here is the Doc that shows how you can display the repeating field group:
- https://toolset.com/course-lesson/creating-and-displaying-repeatable-field-groups/

If you can tell me on what page/post you want to display what repeating field group items once I review that information I will be able to guide you in the right direction.

You can share admin access details and problem URL:

*** 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.

#2657679

Minesh
Supporter

Languages: English (English )

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

Let me first explain how repeating field group items are managed.

Repeating field group items are managed as one to many post relationship where one post can have many repeating field group items.

So on the page: hidden link
- We can display the nested items like:

Card Maker post 1:
- repeating field group item 1
- repeating field group item 2
- repeating field group item 3
Card Maker post 2:
- repeating field group item 4
- repeating field group item 5
- repeating field group item 6

This way we can display the content you have.

When you say this:

use a url param to locate 'Freds card'post then with another URL param select the fields fron 'one' of the repeated groups.

For what field you want to add URL param? do you mean you want to build custom search for the "Card Maker" post type?

#2657689
repeatable.jpg

I still cannot achieve it.

You have described perfectly what I wish for:
Card Maker post 1:
- repeating field group item 1
- repeating field group item 2
- repeating field group item 3
Card Maker post 2:
- repeating field group item 4
- repeating field group item 5
- repeating field group item 6

on post lostandfound

But I have tried creating the post-relationship and still do not see the option as in the attached image when creating the view on post lost and found

Please do not worry about the URL parameter issue as I believe I understand what to do for that.

Are you able to inspect my wordpress and assist me further please?

#2658197

I have found a different route to achieve what I needed.