webvitalii / page-list

WordPress plugin which provides shortcodes to show list of pages.
https://wordpress.org/plugins/page-list/
12 stars 8 forks source link

Show children of current top-level page #12

Open penfold00 opened 1 year ago

penfold00 commented 1 year ago

Hi, great plugin, thanks! What I can't figure out but would like to do, is to show all descendents on all levels of the current top-level page.

Say I got: Page A -- Page A1 -- Page A2 Page B -- Page B1 -- -- Page B1-1 -- Page B1-2 -- Page B2 Page C

On Page B1 I want to show all children and grandchildren of B. So not just the siblings, but all that is under B. On Page B1-1 I want to show the exact same page list - all descendents of Page B.

Is that possible in some way?

Thank you!

baby-gnu commented 1 year ago

It would be great to add either:

or maybe both.

I think the function to modify is pagelist_unqprfx_norm_params.