With the help of a partner developer I went for a CSS solution. The solution has been added to question above. It just hides all page items at first with display:none
and then shows the items I need. The pages list is loaded with needed indentations using wp_list_pages('title_li=');
Related Posts:
- Prev/Next child navigation for current page?
- List child pages of a specific page
- I need ideas for a complicated menu
- wp_list_pages to show all pages on all sub pages
- Combining ‘depth’ with ‘include’ in wp_list_pages()
- Exlude pages from wp_list_pages
- Add ID to target navigation link
- Listing Sub-Pages & Sub-Sub-Pages
- Creating navigation out of specific IDs and their children?
- How to accomplish a child page navigation?
- Custom navigation bar via wp_list_pages is broken for blog roll
- wp_nav_menu: check if the list item has children and add a class to anchor link
- Add custom meta to nav menu items
- Display navigation menu item conditionally based on user capabilities
- Show just one level of child pages, wp_list_pages woe
- Remember the last post I read
- Export navigation menu
- How to modify the “after” of last element in wp_nav_menu
- How do I retrieve menu items from one level only?
- Edit HTML of WordPress navigation bar
- Breadcrumbs showing Parent and Child Pages
- Using FlexNav with WordPress [closed]
- Test if page is child and has children, if so echo child pages also on grandchild pages
- How to make Next and Previous attached image navigation on the attachment page? [duplicate]
- Add class to the items in wp_list_pages
- Customizing Walker_Nav_Menu
- Get only the path from a function like previous_post_link
- how to properly list child pages in sidebar?
- Break apart wp_list_pages in order to customise it
- Load parent pages when there are no child pages
- Text symbols in the navigation menu
- Can this navigation be done easily in WordPress?
- Making some links generated from the wp_nav-menu function unclickeable?
- Trouble with wp_nav_menu, conditional tags and fallback_cb
- inserting custom li class to wp_list_pages
- Previous & Next on Index Page broken
- How to get a list of all recently published child pages?
- Using dividers in menu navigation – where to add code?
- Twenty Eleven theme- have custom landing page, change nav “home” link
- Exclude Post Format from next_post and prev_post
- Hierarchical Custom Posts – Highlighting Current Post in Sub-Menu
- Using query_posts inside single.php loop
- How to have custom menu Item CSS Classes for wp_page_menu() or wp_list_pages()
- List child pages of specific page using shortcode
- posts_nav_link on single.php
- How to get back to same page of post-list – after updating a post
- how to change site tag line for particular pages
- How to get specified parent page title in my function
- dropdown navigation menu
- Bootstrap Navwalker not displaying
- Highlight another nav item
- Listing child pages depending on user capability (role)
- Show siblings (if any) and parents
- How to add show/hide in navigation setting for pages
- Home Custom Menu Link not Working
- How Do I Add Next and Previous Links On Single Custom Post Type Only?
- List all-childpages on parent-page AND list child-pages on childpage itself but not the current one?
- List child pages by slug not ID?
- Inserting specific images inside navigation menu
- wordpress wp_list_pages help
- Navigational drop-down lists in WordPress?
- Select first child/subpage item in wp list pages
- Fallback_cb is messing around with containers
- Only show top-level links in site navigation
- Current navigation highlight for a menu that may be modified by the user?
- Append a code when at the current page in wp_list_pages()
- Programmatically add existing pages and subpages to Appearance Menu
- WordPress – Responsive navbar doesnt work
- Adding dropdown box to WordPress menu
- Help with Sub and Sub-Sub Navigation
- get_adjacent_post – in same term or category not working
- Exclude post format from navigation
- How to make previous_post_link into an image [duplicate]
- How to add swipe action to wordpress pages
- Walker_Nav_menu access parent menu name
- Can I use multiple nav_walkers?
- (Bluehost) navigating to the dashboard via mydomain.com/wp-admin/ results in directory listing
- Implementing the twentythirteen responsive menu in twentytwelve
- Removing Parent Page URL While Keeping the Navigation Intact
- Using characters to separate menus in navigation bar
- How to hide ‘Home’ button from appearing on supages – twenty eleven theme
- reverse next/prev page order
- How to add rel=”nofollow” to wp_list_pages?
- How to list pages with thumbnails, adding a “current-item” class
- Check if current post is the latest (not last)
- How does the Twenty Twelve Navigation Bar work?
- navigation link based on custom field
- How can I add a delay to the collapsible menu in Twenty Eleven?
- Switch form Next/Previous to post title
- add a menu item to navigation menu to link to external url
- Using categories on navigation bar instead of pages
- confused about wp_list_pages() function – how to display selected top pages with all their subpages
- navbar remove box shadow
- body_class(); not working with bootstrap navbar fixed top?
- Display greyed out nav link when there’s not a next or previous post
- Ussing page_navi with WP_Query
- Set custom id to list element walker custom function
- Keep page hierarchy in wp_list_pages, even if on a child or grandchild
- Ecommerce Single Product Next Product Link
- Sort and display pages with specific custom field (not tag)