Skip Navigation

[Resolved] Display the list with an appearance by hierarchy

This support ticket is created 6 years 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.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 6 years ago.

Assisted by: Christian Cox.

Author
Posts
#1157995
stamp.gif

Is it possible to create a list of cpt (wpv-post-links) that looks like this?
Display the list with an appearance by hierarchy

#1158089

Hi, you can create nested Views, filtered by post relationship or post hierarchy, to display nested lists. Then use CSS to style the list items and create a hierarchical display.

Create a View of Grandparent posts, with no filters. Use the Loop Editor to create an unordered list, and insert the post link shortcode in the loop.
Create a View of Parent posts, filtered by post relationship (Toolset relationships) or post hierarchy (Pages and other hierarchical CPTs), where the parent is set by the current post in the loop. Use the Loop Wizard to create an unordered list. Insert the post link shortcode in the loop.
Create a View of child posts, filtered by post relationship or post hierarchy, where the parent is set by the current post in the loop. Use the Loop Wizard to create an unordered list. Insert the post link shortcode in the Loop.
Place the child post View in the Loop of the parent post View, just after the parent post link.
Place the parent post View in the Loop of the grandparent post View, just after the grandparent post link.
Add CSS to style the list items at different levels of hierarchy.