You can do what you need to with the wp_list_pages()
function:
<?php
wp_list_pages(
[
'child_of' => 92,
'title_li' => false,
'sort_column' => 'menu_order',
]
);
?>
Related Posts:
- How to display conditional-content if wp_nav_menu( $args ) retruns something
- WordPress Quick Question . How to Get Parent Link in Submenu in My Code
- get_the_title() gets printed out twice
- How to use wp_nav_menu to create custom dropdown menu?
- Show login greeting above sub-menu links?
- Remove submenu item from list
- Display specific main Sub Nav on Woocommerce product pages
- Beyond widget side menu editing, with the php page, custom template
- How I can add div to menu?
- wp_nav_menu prints children with parent name
- Can’t remove menu items added by plugin
- Submenu opened problem
- How do I use WP_query with multiple post IDs?
- Inject post (from specific category) between posts in Loop
- is_page() not working from within a plugin
- renaming an admin menu item with decimal array index number
- Passing JSON data from WP Query into AJAX causing NULL errors
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- Can we have a php “page” without a WordPress “page”?
- Display certain amount of posts on taxonomy archive page
- wp_delete_auto_drafts() deletes links in menus
- How to add 2 posts under another post? Formatting should be intact
- Replacing the NavWalker dropdown element
- How to add specific menu on a specific page or pages
- WordPress menu deletes when trying to add a hook
- Count number of published posts by type
- Creating new menu item
- How to display custom field on homepage
- Can an array be used as a meta_query value?
- Programmatically create menu with custom link
- Can’t increase posts_per_page by variable
- Custom Loop through category menu to include sub categories
- selected menu item
- Get taxonomy terms only of the WP_Query current posts
- Hide post if matches current month and year
- Add itemprop Schema.org Markup to li Elements in wp_nav_menu
- Use WP_Query in shortcode
- Why is variable not working on custom sql query using wpdb?
- How to do multiple searches (with logical OR) in WP_Query in hook pre_get_posts?
- Show comments menu in dashboard only if the site has comment
- Trouble creating conditional PHP for nav menu items with children for custom Walker
- Count top level menu items
- get current custom post ID by WP_Query method
- How to securely provide a $_POST var in WP_Query with PHP 7?
- Create WP_Query to search for posts by their categories or their parent/child categories
- If Query In Sidebar
- Dynamic content based on a URL parameter
- Secondary navigation menu on one page
- Remove class in nav_menu_link_attibutes filter
- How to target grandchild of post_parent using wp_list_pages
- Detecting classes, adding widgets, and adding divs in with a Nav Walker
- Add item to top of menu using a filter in functions.php
- Adding PHP in the menu
- How to get all author posts outside of author templates
- How to get post ID in a Page?
- Automatically add images to a menu
- get_the_ID() in the footer returns wrong value
- How to override url params with rewrite rules vars?
- How to display SQL query that ran in WC_Order_Query?
- Store metakey value as an array
- Post not populating for custom post type based on category selection
- WP_Query multiple post results
- Infinite Loop – WP_Query
- How can I use custom menus with a Bootstrap WordPress theme?
- echo var into wp_query
- Adding Additional Variables on Menus Page
- Custom navigation menu with awsAccordion
- Toolbar Hidden in a Virtual Page
- Dynamic Menu drops pages?
- WordPress SQL JOIN query
- Class for Selected Menu using wp_nav_menu
- How to create Loop code for Menu using WordPress?
- WP_Query and help with the loop for magazine front page
- How to WP_Query posts order by parent title?
- search.php to search only the post title
- WP_Query – How to query all of post types categories
- How to work Woocommerce pagination inside shortcode?
- get different meta-data of a complicated query at the same time
- wp_Query with mutuplea values returns all posts
- WordPress sorting posts by date and title using a dropdown
- How to get specific multiple pages excerpts at homepage?
- How to set Nav as a default menu in wordpress
- Use WPQuery to match to specific repeater row in post
- WP_QUERY post_in problem
- how to get data from two different table from wordpress database
- Assign meta_query value to php variable
- Wp-query output correct, but the loop shows one less item (only sometimes)
- How to display sticky post always at the top (before regular post) in wordpress?
- PHP warning with code for nav menu walker [duplicate]
- String replace for Login/Logout concatenation problem in menu
- How to create a sub-page of sub-page?
- Transfer WordPress Login Session to an Extended Webpage on the Same Domain
- direct query to post_meta table
- WP Admin Bar – Get current theme name as custom menu title
- List sibling pages widget, exclude current page
- Does wp_query and query_posts affect website performance? [duplicate]
- WordPress post pagination on custom template not working
- Ajax Load More or View More functionality for woocommerce category layout by template overriding
- Add adjacent post function inside custom recent post function
- How do I exclude the current post from the upcoming post query