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