5 years ago

Page slugs and nesting

Posted 5 years ago by mibu31

Hi there,

Could someone please point me in the right direction for dealing with nested pages and slugs. eg. "about-us/meet-the-team/steve-o"

Unfortunately as soon as the number of pages increase/depth of the nested pages, queries can increase quite drastically!

The two routes I have in mind are: 1. Use "parent_id" and recursively loop through parents to generate the slug and to implement caching. 2. Use nested sets.

Could someone who's "been there done that" with a variety of methods please advise me on what worked best for them?

Thank you.

Please sign in or create an account to participate in this conversation.