Skip Navigation

[Resolved] Create a view withe repeatable group

This support ticket is created 4 years 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by parisK 4 years ago.

Assisted by: Shane.

Author
Posts
#2153617
screenshot_3.PNG.png
screenshot_2.PNG
screenshot_1.PNG

Tell us what you are trying to do?
Each user can create one user "profile" (Προφίλ υποψηφίων in Greek). The profile is a custom post type.
Each user profile has multiple "work experiences" (Εργασιακή εμπειρία υποψηφίου in Greek) as a repeatable group.
This is done following the basic documentation (https://toolset.com/course-lesson/creating-and-displaying-repeatable-field-groups/). In my case, the gyms are the profiles and the work experiences are the opening hours.

The previous logic works fine, each user can create a user profile and create multiple work experiences. See screenshot_1.PNG

What I'm trying to do now, is to create a "My account" page following multiple documentations (https://toolset.com/course-chapter/registering-directory-site-users-from-the-front-end/) and list all user's profile work experience. In simple terms: Load "My account", get user's "user profile" and for each user profile (probably only one) fetch all "work experience".

So,
1. I created a new page to host my "My account" page (screenshot_2.PNG)
2. I created a new view (in page) to get all user's "profile" (each user will have only one profile)(screenshot_3.PNG)
3. I created a new view (Toolset > Views) to get all "work experiences" based on "profile" post_author. However, this is not working 🙂

Can you please assist me?
Thank you in advance

#2153761

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Paris,

Thank you for getting in touch.

Would you mind allowing me to have admin access to the site so that I can have a look at this for you ?

I've enabled the private fields for your next response.

Thanks,
Shane

#2153763

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

private fields

#2153909

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Paris,

This should now be working. The correct way to get this to work is by using a nested view where you will first display the user's profile then within that view you will add the view for the repeatable field group.

I've set this up for you using these 2 views

Parent: hidden link

Child: hidden link

Please let me know if this helps.
Thanks,
Shane

#2154203

My issue is resolved now. Thank you!
Thank you Shane for your help. Your solution makes sense. However, it's now quite easy to figure out this issue on my own, as a lot of people. Maybe a new video should be set up for this.
Anyway, thank you once again!