wp_list_pages has limited functionality, and would be difficult to inject Categories into the mix without rewriting the function itself.
Using the built in Menu functionality is likely the best way to go, because you can at least set individual item classes, allowing you to create Menu headers for your top level categories (having the header items use a “header” class or similar).
You may also be able to just use the get_pages() function, which will return an array of the pages instead of just printing them onto the page. This will allow you add logic to the display of the data when iterating through the array.
Related Posts:
- Hard coded main navigation
- category permalinks
- Using categories and pages in menus
- How to create an automatic MultiColoumn MegaMenu with Categories WordPress
- How to check if I’m on the last page of posts?
- Custom Nav Walker menu – Display category count
- Get page content by category or tag
- Reflect nested categories in appearance > menus
- Category page showing posts from all categories
- Loop with Dynamic Categories
- Category menu item and its last 10 posts as sub-menu
- Create a full width responsive header image per page
- Remove child products from woocommerce category page [closed]
- Using same slug name for a page and category
- Remove “Category Archives: title” at the top of a category page [duplicate]
- Is there a function to cause empty categories not to show in menus?
- How to have a static category/author page?
- Listing all posts from current category on page
- Assign different category colours to different categories in the main menu
- I use same slug name for category and page
- Keep active class in post page
- Auto add pages to category menu
- How to show empty category in admin menus search
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Display WooCommerce product categories in a 4 columns custom menu [closed]
- Page with the same name of a category
- Show posts of category in a page
- Show pages and articles in category search result
- How to create taxonomy values for pages and list them in wp-admin
- Automatically add product_categories to nav_menu
- What type of page should i use? static page or category page? and what’s the difference? [closed]
- Duplicate Category and Page URL loads Category instead of the Page
- Add Product categories to WordPress menu without losing hierarchy
- Custom Category/Subcategory structure
- Multiple menu items highlighted
- wp_nav_menu not highlighting the current category when viewing a single post
- Viewing category pages without the word ‘category’ in URL
- in_category() works in single.php but not in page.php?
- Show recent posts in menu?
- Categories vs. Page Site Organization
- Show Different Custom Menu on Different Category Pages
- Open subcategories in submenu on click in primary menu
- How to add Categories to the top menu of the website?
- Implementing a tricky wordpress menu (nested categories + thumbnails)
- How do I automatically put categories and their descriptions on a WP Page?
- Looking for the best solution to build this Blog structure? Picture attached?
- editing fonts of category links from the_category() funtion
- Nav menu category links not showing
- Is it possible to restrict viewing of category PAGE to logged in users only?
- Show number of articles in menu
- How to show only one category in breadcrumb navigation
- Automatically adding categories and authors in custom menu?
- Highlight wp_nav_menu when category is selected
- How to make 2 tag feeds show up on 1 page?
- Class active for Archive link – looped out
- Search in custom post type AND in pages with category
- posts_nav_link(); picks up index.php instead of category.php as template
- Give a page priority over a category that has the same name?
- Multiple URL’s based on category for one post
- Menus don’t work after 4.4 [closed]
- Create menu / submenu from category subcategory and posts
- How to “group” (categorize) the Pages together?
- wp_list_categories in in nav_menu
- Different menu navigation per category
- WP admin broken. Not saving catgories or adding categories to menu
- Different banner for different section
- Creating Category Specific menus
- Custom category URL rewriting
- Putting a Category of posts under a Page
- Custom Walker for wp_list_categories
- How can you change the permalink for pages?
- Should I use “Categories ” or “Pages” for a WordPress Static Site (A non blog site)?
- Category.php loads first before page.php?
- How to insert category list into post creation page, and retrieve chosen categories?
- Create menu locations for each category in wordpress
- How do I display something on a particular category page?
- Automatically redirect a page to a category that share the same slug
- Building Menu from Woocommerce Product Categories
- Hooking to walker_nav_menu_start_el to insert list of subpages
- Show subcategories on a parent category page
- How to create a subcategory to a PAGE on WP?
- Get the ID of 10 Latest Pages stored in a WordPress Category
- Admin: Navigation Menus do not show empty categories/taxonomies in the list’s search tab
- How to show 5 posts from specific category on related page?
- Give Children Unique ID’s
- Change div background acording to the selected category
- How do I get category and page ID’s?
- How to put page numbers with the next/previous on a post/category list?
- How do I attach a page to a category similar to how we attach media to a post?
- How can I display tags as categories?
- WordPress list categories dropdown with parent-child relation and child under it’s parent
- List a maximum of ‘x’ product categories with qty of ‘y’ in each column
- Trying to create a Categorised Index (archive?) to use as my Home Page
- Searching for a category returns nothing if category is empty
- “Virtual category page” based on a custom field filter
- function query_posts disabling current_page_menu class
- Group search results by category
- Getting the Most Recent Posts from Multiple Categories
- Showing Categories for Page Edit – without plugin
- Show different menu on each woocommerce category page