[Geschlossen] Display List of Child Post from Link in Modal
This support ticket is created vor 8 Jahre. 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.
in a separate child view to render the count from the relationship. It renders well in the parent post table view as expected!
I expected to see: It all works, but I really need the link to pop a modal listing the child posts and not go to the Parent's content template url view. I already have a post title url in a table column, so this would be a redundant link.
How do I tweak the code to not only give a count, but to render a child post list loop "onclick" in a modal? I can style the child list as a table in the modal on my own. Thanks!
To list Child Post Types (any information of those Posts) you create a View that lists the Post Type that is Child of (...) and then you call it where ver you want.
In your case you probably want to Query Child Posts of the Post set in the ShortCode argument (just as you do now for the count)
This View can be put into a Modal, and if you are on a specific Parent Post, and pass the ID of that parent Post to your View listing Child Posts, it should display all related Child posts.
Okay. How do I get that created child list view to pop a modal from a parent post title w/link onclick? Do I put a modal javascript in View or Content Template?