Skip Navigation

[Resolved] Generating nested view within another nested 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.

This topic contains 5 replies, has 2 voices.

Last updated by deepS 7 months, 2 weeks ago.

Assigned support staff: Shane.

Author
Posts
#1486825

Hi,
I have a custom post called 'Exam' where I have created an RFG (Repeatable Field Group) say 'RFG 2' withing another RFG say 'RFG 1'. Here I have succeeded in generating views from RFG 1 but I couldn't generate any result from RFG 2 that is residing withing RFG 1.

I have applied the same logic that I used for generating results from RFG 1 at the front end of the Post. Can you guide me in this regard so that I can have the desired results?
I am ready to share the login credentials. Thanks.

#1487023

Shane
Supporter

Languages: English (English )

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

Hi Deep,

Thank you for getting in touch.

Given the case here you will need to apply a nested view.

You first view will list out the Items that are related to the current post and your 2nd view will list out the items that are for the first RFG.

Your logic should look like this Post <- RFG view 1 <- RFG view 2.

In order for the RFG view 2 to display any date it must be added inside the loop data of the RFG view 1 since this is where View 2 will get its parent data from.

You will need to add a query filter for Post Relationships in order for the data to show and then set that query filter to "The current post in the loop".

Please let me know if this is clear or if further explanation is needed. Also you can see my screenshot for a quick example.

Thanks,
Shane

#1488575

I have tried all the things but the view is not generated. I thinks you need to look up the settings. Thanks.

#1488817

Shane
Supporter

Languages: English (English )

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

Hi Deep,

Please provide me with admin access to the website so that I can check on this for you in a bit more detail.

Also please let me know the page and the view where you are testing this out.

Thanks,
Shane

#1490235

Shane
Supporter

Languages: English (English )

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

Hi Deep,

The information should be showing now.

All that was needed was to add the exam syllabus child view to the exam syllabus view so that it could get the correct information for that particular exam.

Please let me know if this helps.
Thanks,
Shane

#1491473

My issue is resolved now. Thank you!