wp_list_pages
simply lists pages. It isn’t a menu and doesn’t use the navigation menu APIs. For what you want you’d need to do several queries to find the subpages of those page IDs, so in your case 4 queries, and you’d need to do 4 wp_list_pages calls, and a manual query to get the top level pages. This will not be fast, and is wasteful, kludgey, and a bad idea.
So instead you should be using wp_nav_menu
. Use a standard nav menu, if your client modifies this then charge them to put it back ( serves them right, they were warned, but it is their site, and they paid for it, so why shouldn’t they be able to? ).
With a standard nav menu you can add non-page items, rearrange items, and submenu items don’t have to follow the page structure.
Related Posts:
- Can an admin check passwords of registered users?
- Make A WordPress Page Accessible To Admins Only, Redirect Other User Roles
- How to remove “Super Admin” from All Users for those that are not a “Super Admin”?
- How to display only logged in user’s post comments in comments area
- Restrict dashboard access for specific user roles to specific actions
- Protect custom php file with login
- Change top level menu item to point to custom submenu item
- front end editing using iFrames, best approach?
- Admin – Load existing admin template as a submenu page
- How to hide a specific part of dashboard for non-admin roles?
- WordPress administrator area access disabled temporarily due to widespread brute force attacks
- WordPress Remove Submenus
- Create a WordPress administrator without access to back-end
- Redirect admin 403 “Cheatin uh?” admin pages
- How To Remove Import/Export Option From Tools?
- Doesn’t call user information to include “wp-load.php” in an external php file
- Redirect non-admin after login, and in url – /admin
- Signed-in as admin on just part of the site
- Capability to read/edit page in wp-admin only for administrators
- You do not have permission to access this document on form submit
- What are the standard admin CSS id/class tags?
- How to remove entire admin menu?
- The website cannot display the page
- Set Default Admin Colour For All Users
- How can I target WordPress 3.8 new interface MP6 with CSS?
- Settings API – easiest way of validating checkboxes?
- initial sort order for a sortable custom column in admin
- Uploading files in admin panel?
- Redirect Admin User in Dashboard
- Read only capability for custom post in admin area
- How can ‘admin_email’ be set?
- Remove ability to access certain admin menus
- Conditional check for front-end which includes ajax
- Hide update messages from non-admin users?
- Daily notices of failed login attempts for non-existent admin user
- Reorder plugin items in the admin menu
- Reference external file as a function
- “Automatically add new top-level pages” Default
- Is it possible to hook AJAX to UPDATE-button?
- Get email address of type Administrator
- Which hook for processing plugin page form data?
- Calling a shortcode in the backend
- Is there a way to have admins that are logged in to wordpress not have to enter the password for password protected pages while browsing the website?
- Error thrown. Cannot create references to/from string offsets
- How to receive security update notification email?
- Include admins in author drop-down on edit post screen
- How to restrict wp-admin and prevent upload errors
- Adding another “Add Post” button to admin
- Admin page redirect to another admin page
- How to determine if an admin is logged in outside the loop
- What determines whether admin toolbar is shown to a logged-in user?
- Adding text in more than one language (at the same time)
- How to get view count of every page on site and add that (increasing) number to Dashboard Widget
- Restrict function call to page load but not ajax call
- How do I remove All and Published if not admin?
- Fatal error: Exception thrown without a stack frame in Unknown on line 0
- Where should I hook into admin?
- Settings API not saving values to database
- Dashboard menu missing
- How to remove wp panel for users
- Unable to upload image using the standard uploader in the WP admin (v4.3)
- Admin role not really admin
- Featured image on post edit page not loading over HTTPS
- Copying WordPress site, HOW about the DB connection?
- How do I diagnose a plugin resource 404?
- Filter WooCommerce Orders
- How to disable Media Library uploads for non-Admin users?
- Page can’t hand request – HTTP ERROR 500 – when updating something
- Admin user lacks admin permissions after hack and can’t reinstate
- How to change the User name and Password of admin account
- Redirect public site to another one but allow administrators to access the old site
- Posts in sidebar only by admin
- Display an image of selected template in admin to aid user when using complex templates
- How to remove the default checked attribute from inputs in admin?
- Passing state from child component to parent component in a Gutenberg Sidebar
- I can’t enter the control panel of my wordpress site after channing the URL to https://
- Admin user column sort by numeric meta key
- Shop in Subdomain feeding main domain order in admin area
- Can I retrieve Published changes when changes have been Saved but not Published in WordPress Semplice?
- I can’t access login page
- Admin Access for specific page(s)
- Get Link of Page Selected through a Select Field in Custom Admin Page
- how to disable the e-mail verification on wp-admin/options-general.php multisite admin e-mail
- WordPress Admin Email
- conditionally update css on edit.php
- Simple CSS admin pagination
- Can I show the tag admin interface on a post when logged in as an admin?
- Editing post in admin panel
- Making a custom upload form and page in the admin section
- site admin for subscribers
- Customise the add media pop-up to include rel attribute option
- WordPress gallery image link gives 404 when not logged in
- Custom Div with links on Admin Bar
- WordPress admin loads erratically “connection reset by peer”
- Remove “minor-publishing” div from Publish admin metabox
- New User Notification – Setting Email
- Can’t access my wp admin: captcha images invisible, gives me error message
- Pull Random Images From Options Page [closed]
- Woo Commerce Settings for Check-out Form [closed]
- Modify ‘the_content’ appearance in the admin area