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
- Get Current User Id Inside a Loop Returns 0 For a Shortcode
- Trouble creating conditional PHP for nav menu items with children for custom Walker
- Random order of WP_Query results with highest meta value
- Custom page archive query by url var calling page twice on one of my custom queries?
- Count top level menu items
- WordPress custom slug (endpoint) and compare all links
- create a select input with menus created on a custom options page
- How to query for posts with a null or blank post_name?
- WordPress pagination not working with search page
- get current custom post ID by WP_Query method
- Multiple WordPress Menus that will only display all pages
- Menu — How to add “current-menu-grand-ancestor” css class
- Input type search in Menu
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- WP Walker using custom css classes
- How to securely provide a $_POST var in WP_Query with PHP 7?
- Using foreach loop breaks
- Create WP_Query to search for posts by their categories or their parent/child categories
- WP Query with custom Shortcode
- wp_query with cat not working
- Change list item content in menu navigation to add a child element with specific class
- Advanced Meta Query for Large Calendar Website (12k+ posts) (175k+ wp_postmeta rows)
- How to use an associative array in post__in with WP_Query?
- Menu Limitations
- If Query In Sidebar
- Recent Posts slider, using WP_Query(), loads duplicate sliders
- How can I Add a variable PHP in the Menu Nav
- Compare post-IDs within WP_Query? (Less than / Greater than)
- Where to place PHP code that inserts (or doesn’t insert) menu item?
- Adding an Avatar to the Top Nav Bar
- How to use $query->set with post__in?
- Automatically adding new post categories to menu
- Add data attribute to each li in menu
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Loading the same WP_Query in two different wordpress .php templates
- How to prevent WP_Query function from returning all posts when empty?
- Dynamic content based on a URL parameter
- Display a specific category of products in shop page and disable code for specific actions
- WP_Query adds “(wp_posts.ID = ‘0’)” so no results are returned
- Remove metabox from WordPress menu editor page?
- Custom Walker_Nav_Menu issue with variables on PHP 7.3
- Add more button if more 8 items
- How to store post ID’s in cookie or session to display the same posts later
- How to add an arrow to menu items has submenus
- wp_nav_menu returns menu list in ascending order. How can I arrange the menu same as dashboard menu
- WordPress, AJAX and pre_get_posts using conditional tags
- Get users that likes the post
- Unique icons next to each WordPress menu item
- get_posts() and WP_query limits ‘AND’ conditions to a maximum of 6 for meta value queries in WordPress
- Child page menu in sidebar
- Exclude posts based on meta value
- Title Case WordPress Menu Items
- Recent Posts Not Showing Only On A Specific Category Page [closed]
- 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
- Custom query, checking values of multiple meta keys
- auto-populating custom nav with all items from custom post type
- inserting a post from an extern php file but post content doesn’t show on wp site
- Trying to store submenu items to render out after main menu
- Remove echo from shortcode
- Detecting classes, adding widgets, and adding divs in with a Nav Walker
- How to change menu order item
- How Can I use WP_Query to Only Display 1 Post from Custom Post Type if Query Returns Posts with Matching ID in Custom Field
- Custom Menus: dynamic highlighting problem with custom home link
- WordPress theme options error
- Redirect to another page using contact form 7? [closed]
- Security for data obtained from the database
- Fatal error: Call to a member function query() on a non-object
- Add item to top of menu using a filter in functions.php
- Get posts from multiple post type
- Is it possible to retrieve all posts with a certain value for metadata?
- Adding PHP in the menu
- Two menus show up
- How to get all author posts outside of author templates
- WP_Query fails despite having 1 post
- Create a Blog Template Page
- unable to use ‘new WP_Query’ in AJAX call
- wp_query get the 2nd post
- Exclude posts with specific metadata from search?
- How to get post ID in a Page?
- Register a menu – Error Header
- How to style one item from main navigation?
- Display an image if odd number of posts in grid
- Show About and Contact Us page when they’re clicked in the top menu.
- How to retrieve the data from the sever and displaying it in a page?
- New walker for walker_nav_menu to change inside container data
- Add data-id attribute to child page links