Home › Toolset Professional Support › [Resolved] Nested View [wpv-found-count] for child 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 1 reply, has 1 voice.
Last updated by TomW5440 4 months, 1 week ago.
Tell us what you are trying to do?
I have 2 views nested within each other (agent, child). The parent view has been created in classic view (so I can nest the views) and child created in block editor.
That parent view query filter is set to display author posts with author same as logged in user and the child view query filter is set to display property posts with author same as logged in user.
This seems to work until I add a conditional with [wpv-found-count] because it's counting the parent view and not the child which is what I need.
The conditional variables are property_count which belongs to parent view and [wpv-post-count] but this needs to be the child count.
<!-- wpv-loop-start -->
[wpv-conditional if="( $(wpcf-property-count) gt '[wpv-post-count]' )"]
[types field='property-count' format='FIELD_VALUE'][/types] here [wpv-found-count]
<!-- wpv-loop-end -->
Is there any documentation that you are following?
Thanks for listening.
My issue is resolved now. Thank you!
Known issues and solutions
Frequently asked support questions
Support tickets archive
Get help from experienced contractors
Meet Toolset support team
Toolset Customer Support Policy
Need to tell us something about the quality of support
How to remove personal information from your database for support