Sauter la navigation

[Résolu] Create link to separate page containing list of child posts

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

I want a link on the parent page to a separate page containing the list of child posts.

Solution:

You can try with a content template, for example:

https://toolset.com/forums/topic/create-link-to-separate-page-containing-list-of-child-posts/#post-1856065

Relevant Documentation:

This support ticket is created Il y a 4 années et 1 mois. 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par davidm-13 Il y a 4 années et 1 mois.

Assisté par: Luo Yang.

Auteur
Publications
#1855967

Tell us what you are trying to do?
Currently I'm displaying a list of child posts on the parent post page with the view:

[wpv-view name="complaints-list-new-table"]

Instead I want a link on the parent page to a separate page containing the list of child posts.
What's the html and Views shortcode that I need on the parent page and on the page containing the child posts for this to work?
Thanks for your help

#1856065

Hello,

You try with a content template, for example:
1) Create a content template "list of child posts", display the shortcode you mentioned above:
[wpv-view name="complaints-list-new-table"]

2) In single parent post content, setup HTML link to above content template, for example:

<a href="[wpv-post-url]?content-template-id=123">list of child posts</a>

Please replace 123 with the content template post ID of step 1.

#1857241

Thanks Luo,
Once I applied your solution and not my own version of it, it worked as expected - problem solved.
Thanks for your help