• Resolved arathra

    (@arathra)


    Is it possible to indent the child pages and display the pages by parent pages? For example:

    a parent page
    +++ a child page
    +++ another child page
    some page without children
    another parent page
    +++ a child page
    ++++++++ a child-child page
    +++ a second child page

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    You could add a class to each listing item indicating its depth and then style those as you want (indented, different color…). Here’s the filter: display_posts_shortcode_post_class

    But I don’t believe there’s a way to query all pages and have direct descendants appear below their parents. In other words, “a child page” would be properly indented but not underneath the correct page. You would need to manually order every page in the backend, then in your query sort by menu_order.

Viewing 1 replies (of 1 total)
  • The topic ‘indent child pages’ is closed to new replies.