[Resuelto] How do i list child post on a stand alone page – not the parent post
This support ticket is created hace 6 años, 2 meses. 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.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
Tell us what you are trying to do? I would like to list all child posts (title and link) of a parent post on stand alone page.
the user view a parent post with a link to see all child posts
the user click on a the link and go to a page where all the child posts are listed
the user can select any of the child post link and redirected to the child post image gallery
So create a View to list child posts. It sounds like it should output the child post title as a link.
Now this View will list *all* child posts, so we will need to add a Query Filter to limit the results to only those which are children of a particular parent post.
Which parent post?
One that we will pass to the View using a URL parameter.
In the screenshot you can see me adding such a filter. Views is suggesting "wpv-relationship-filter" as the URL parameter, but I could change this to something else if I wanted.
Add this View to a page. Note the ID of the page.
Now edit the template for displaying parent posts, where you want to insert a link to this page to list its child posts.
So we pass the ID of the parent post to the page that has our child posts View (which has an ID of 204 in my example; you can also use the page title instead of the id when inserting the wpv-post-url shortcode if you prefer).