Skip Navigation

[Fermé] How to Make Pretty URLs from Hierarchal CPT?

This support ticket is created Il y a 7 années et 10 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 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

Marqué : 

This topic contains 1 réponse, has 2 voix.

Last updated by Waqas Il y a 7 années et 10 mois.

Assigned support staff: Waqas.


I'm absolutely stumped. I want to setup hierarchal pages like this, and can't figure out how to use a shortcode to display the child pages on a parent page. All pages are part of the same CPT:

hidden link (level 1)
hidden link (level 2)
hidden link (level 3)

I want to be able to put a shortcode on level 2 that will query all of its child pages (level 3) and display them as a list. How do I do this?

I'm using a View with these settings, yet the child pages aren't displaying:

  • Select posts that are children of... "Post where this View is inserted"

I do have hierarchal and post-attributes already checked on the settings for the (reviews) Custom Post Type.

What I do not want is to have to create multiple CPTs and screw up the directory order of my URLs. I am trying to theme all of my content properly using an information architecture plan that I've developed, so this is the way my URLs have to be.

So stumped right now. Please help.



Languages: Anglais (English )

Timezone: Asia/Karachi (GMT+05:00)

Apparently, you will need to create separate View for each level. For example:

- Parent View: listing all 1st level posts.
- Child View: listing all 2nd level posts and filter as you set
- Child View: listing all 3rd level posts and filter as you set

However, I will suggest to try changing filter to "Post set by parent View".

Also, please use [wpv-post-link] to provide a clickable link to each post. Because this generates appropriate permalink to each post's single page.

Please let me know if I can help you with anything related.

Le sujet ‘[Fermé] How to Make Pretty URLs from Hierarchal CPT?’ est fermé à de nouvelles réponses.