this one is driving me mad. Some time ago I had a go at this and only got a part solution. What I wish to do is allow my users to utilise the page stub / permalink / page name of a post or page instead of the title - so that navigations in the sidebar are neater and controllable.
For example, if I have a page titled 'What we did on our holidays' - and the template only has a narrow sidebar, its going to look messier. I would like to be able to set the permalink / page name to 'Our Holidays' instead.
I recently revisited this idea because my solution - though it delivered the page names and the links it didn't handle any subpages correctly. I essentially want the function of wp_list_pages, but have it return page name within the
- construct instead of page_title
I spent some time reverse engineeing wp_list_pages, and trying to understand how the the walk and page_walk functions plus the filter work, but its getting somewhat beyond me. I cannot locate the wp_page_list filter, or maybe don't understand the mechanism right.
Can anyone help or suggest a solution?