It is possible. Two options:
-
If the subpages are just children of the currently displayed page, you call:
wp_list_pages( array ( 'child_of' => $GLOBALS['post']->ID ) );
See Codex documentation. Very simple.
-
If you need a custom structure, for example a list of custom taxonomies when a special post type is viewed, you need to create a custom nav menu and a custom walker.
The walker has to collect the associated items for the current page, save those somewhere and then another function would have to print it out where you need it.
For someone not familiar with this stuff it may take a while to get this right. Our tag menus collects some useful information about this topic.
Related Posts:
- Extend walker – navigation, adding data attribute to a tag
- wp_nav_menu doesn’t generate parent/ancestor classes
- Hide Login information in Account settings in Buddy Boss
- Using Shortcodes in WP-Menus in WP 3.1 (via nav_menu_objects)?
- Multiple menu items highlighted
- Programmatically (PHP) get the nr. of items in the primary navigation menu
- Home Custom Menu Link not Working
- Inserting specific images inside navigation menu
- Add clickable arrows to parent menu items with children elements e.g. with
- How to wrap the list with custom class using wp_nav_menu?
- Help with walker for nav
- Using my WordPress menu on another platform
- Using _s theme, menu changes do not affect header menu
- Sticky menu for WP custom menubars
- How can I add a delay to the collapsible menu in Twenty Eleven?
- confused about wp_list_pages() function – how to display selected top pages with all their subpages
- Position a hard-coded menu item
- How to add active state to the navigation links?
- How would I make a function to dynamically determine if user is logged to change navigation menu text?
- Customize Widget Navigation
- Custom menu not showing even though it shows as being registered?
- Current menu item highlights wrong
- remove or hide Link Relationship (XFN) form Menus tab
- Walker_Nav_Menu Add Strings and Class Name
- Add default wp_nav_menu classes to my custom links
- How can I set the first link in my nav menu to simply be a drop-down to some other pages
- removing extra mobile menu from the header
- Custom Menu (only showing direct cildren) ACF not showing
- Programmatically add a Navigation menu and menu items
- Remove wrapping div and ul from output of wp_nav_menu
- Dynamically exclude menu items from wp_nav_menu
- wp_nav_menu(), how to change class?
- Split up wp_nav_menu with custom walker
- Is there an easy way to replace a custom menu link with a page or post?
- Mega Menu Walker
- How to Add to Each Menu Link with link text to data-attr?
- Add Javascript to WordPress Menu
- Filter wp_nav_menu()
- Add custom classes to anchor in wp_nav_menu
- How to modify navigation menu of the “My Account” page in WooCommerce
- Custom ID for certain menu item?
- Does Extending Multiple Nav_Menu_Walkers Allow Nested Menus?
- wp_nav_menu: check if the list item has children and add a class to anchor link
- Add data-icon input to WordPress custom menu links
- Displaying Logged-In User Name in WordPress Menu
- Remove current_page_parent nav class from blog index when in CPT
- wp_nav_menu remove class and id from li
- Add separator to admin submenu
- On which hook should I be calling register_nav_menu(s)?
- Remove Container Element From wp_nav_menu() Markup
- Creating “static” taxonomies to choose from, inside custom post type?
- Add custom meta to nav menu items
- Add Dividers or Separators Between Nav Menu Items
- WordPress Custom Post Types with a page as a parent?
- Display navigation menu item conditionally based on user capabilities
- Add custom html to last sub-menu item
- Show just one level of child pages, wp_list_pages woe
- Removing link ” from ” menu for some “links” without JS
- Show current navigation path from menu
- Any official way to create an admin theme?
- Remember the last post I read
- Export navigation menu
- Call custom field into menu item
- Use navigation path from menu for permalink
- Exclude Private, Draft pages from Primary Nav when using custom menu
- add span class inside wp_nav_menu link anchor tag
- wp_nav_menu always falls back to a menu
- Prev/Next child navigation for current page?
- wp_get_nav_menu_items how to exclude sub level menu items?
- Multi Level Bootstrap Navigation Menu in WordPress
- List child pages of a specific page
- How to set limit only on top levels of wp_nav_menu?
- Determine if a navigation item has children
- What’s the easiest way to duplicate an entire navigation menu?
- How to modify the “after” of last element in wp_nav_menu
- Bootstrap dropdown nav pills not working with wp_nav_menu()
- Show only 2nd level of navigation depending on active navigation
- How to move parent li to end of child ul
- How do I retrieve menu items from one level only?
- wp_nav_menu() custom container and container_id
- How to get a different mobile menu than desktop menu in the twentytwelve child theme
- Add custom attributes to menu items without plugin
- Show a WP 3.0 Custom Menu in an HTML Select with Auto-Navigation?
- Edit HTML of WordPress navigation bar
- Breadcrumbs showing Parent and Child Pages
- global menus made from master site’s custom menus wpmu network
- Add Page ID class to nav menu items
- How to add menu support to a theme?
- Using FlexNav with WordPress [closed]
- Menu is not visible in appearance
- How to highlight the right item in the navbar
- HTML Bootstrap navigation menu to WordPress menu using wp_nav_menu
- Return only top-level navigation items from a menu using wp_get_nav_menu_items
- One site, 2 distinct sections: two different top nav menus?
- How to manually add an item to a submenu in a menu generated by wp_nav_menu?
- Walker class: Problems with understanding how walk() method can be called without error
- WordPress Export Import Site Navigation Menu
- Using Image Links in WordPress Navigation Menus Instead Of Text Links
- Adding Custom Link anchors in the top menu that points to specific sections of the site home page
- Links open only on new tab or window