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
- 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
- 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
- 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
- Get only the path from a function like previous_post_link
- Load parent pages when there are no child pages
- Can this navigation be done easily in WordPress?
- Making some links generated from the wp_nav-menu function unclickeable?
- inserting custom li class to wp_list_pages
- How to get a list of all recently published child pages?
- Using dividers in menu navigation – where to add code?
- Exclude Post Format from next_post and prev_post
- List child pages of specific page using shortcode
- How to get specified parent page title in my function
- Bootstrap Navwalker not displaying
- Highlight another nav item
- Listing child pages depending on user capability (role)
- List child pages by slug not ID?
- Inserting specific images inside navigation menu
- Fallback_cb is messing around with containers
- Only show top-level links in site navigation
- WordPress – Responsive navbar doesnt work
- 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
- 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
- Check if current post is the latest (not last)
- How does the Twenty Twelve Navigation Bar work?
- 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
- 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)
- Top Nav submenus wpon’t stay open – only in FF and only sometimes [closed]
- Display all posts thumbnails when viewing a single post
- Modifying navigation menu classes with a Walker
- New Page Position
- Possible to hide Page if no posts from a CPT?
- navigation doesn’t work in custom header.php
- Next/Previous links doesn’t work in the same category
- WordPress navigation only shows post of page one, even if on page two
- Depth problem using wp_list_pages for subnavigation
- WordPress change wp_nav_menu walker with a custom one
- Navigating WordPress Articles From Parent Category?
- Manually adding current_page_parent to wp_list_pages()
- Dynamic next and previous post links
- How to echo site url if not on index.php while using anchor based nav
- Current Post Parent Category & Child Category Links
- Listing Child Pages in Random order
- Problem with sub-menu container
- Category navigation template
- Connect custom rewrite rules and query variables to wordpress navigation
- How to remove anchor of current menu item in navbar?
- Walker_Nav_Menu Add Strings and Class Name
- How to remove the word “Navigation” from the top of the mobile main menu?
- Forcibly show previous/next links
- Children Pages Displaying Only Intermittenty
- How to add navigation in footer like StackExchange?
- HTML-to-WordPress: Dropdown Navigation Menu [closed]
- Foundation 5 Dropdown Top Bar not working in WordPress
- displaying child pages in columns when on a parent page
- How to retain responsive navigation menu in twentyeleven child theme
- How to make in post Parent page children page list nummbered
- How can I set the first link in my nav menu to simply be a drop-down to some other pages
- first_post_link and last_post_link? [duplicate]
- Creating a custom menu with images as each link
- current_page_item and custom post type?
- determine if specific page is in list?
- Navigation dropdown issue, need it to work on hover
- All navigation fails and leads me to homepage
- add additional anchors in navigation menu
- Previous / next posts using featured image thumbnail as links