[Resolved] Show total number of child (relationship) posts
This support ticket is created 2 years, 8 months 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Tell us what you are trying to do?
I have a page template for a post type showing 2 different post types in a table view list.
Now I want to add a summary on top of that page showing the total amount of posts for each child post (Inkommande and utgående).
I've created a view for the correct post type, but since it's a loop, it shows the total number in a repeatable list. So 9 posts will show the number "9", nine times.
You need to move the block where you insert the wpv-found-count shortcode so that it is in the View Output block, but before the View Loop block. See the screenshot.
Alternatively, rather than create Views for this, you could just use the custom shortcode described here: hidden link