Just pass number=5
and it should work since wp_list_pages()
uses get_pages()
which has number parameter, and also if you look at wp_list_pages codex entry at the bottom under change log you can see that it take the number
parameter since version 2.8
Related Posts:
- How can I hide children of draft pages using wp_list_pages()?
- How to List All Pages (With their template names) Within a Website
- How can I list all pages with their templates?
- Add Parent to List of Subpages
- get all page IDs from wp_list_pages
- Add class to the items in wp_list_pages
- Display grandchildren on child and grandchild pages using wp_list_pages
- Load parent pages when there are no child pages
- create shortcode to show children if any otherwise siblings
- dynamically limit depth of wp_list_pages
- Conditional styling of wp_list_pages bullet points [closed]
- Setting multiple values to as sort_column
- wp_list_pages – Using a Walker to customize output order
- Custom category listings
- How can I include private pages in a page list?
- Do Not Display Parent Page if No Subpages
- Arrange Combined List of Pages and Categories
- List pages within a certain parent and show published month
- Change Parent Name with wp_list_pages?
- List all Posts under heading in wp_list_pages menu
- $item->url not retrieving url in custom walker?
- WordPress Side Navigation with Parent Heading and Child Sub Pages
- List subpage of subpage
- How can I list all page titles and IDs?
- Hide Parent if No Children
- Add Parent to Subpage List
- active parent page when clicked on childpage
- alternating classes on wp_list_pages
- remove auto generated pages from the menu?
- Inset image thumbnail from page into list
- How to prevent custom walker from creating sub navigation for pages that are not relatives of the current page?
- Exclude current page in wp_list_pages
- Sub Navigation in Sidebar
- wp_list_pages bug in “number” parameter
- Targeting specific instane of wp_list_pages
- Renaming wp_list_pages class
- wp_list_pages issue/bug?
- WordPress get_pages sub nav show current page
- Change class name in WordPress wp_list_page nav
- Non page link in wp_list_pages
- only display Pages which have children
- add a.parent in wp_list_pages
- wp_list_pages by taxonomy?
- wp_list_pages Format only on Recently Modified Pages
- Adding custom class names to anchor in wp_list_pages
- Walker Class : extract function and wp_list_pages
- Exclude pages by custom field (with yes/no) storing wrong data?
- Return parent post with its children using WP_Query?
- Show just one level of child pages, wp_list_pages woe
- Test if page is child and has children, if so echo child pages also on grandchild pages
- How to add active class to custom menu using while loop and wp_list_pages
- Custom Post Type Name Causing Problem
- Check whether the child page has siblings
- wp_list_pages(); Change output of hyperlink
- Make wp_list_pages print slugs instead of titles
- I need ideas for a complicated menu
- list pages using page.php and NOT page-{slug}.php
- How to get specified parent page title in my function
- Highlight another nav item
- Listing child pages depending on user capability (role)
- List child pages by slug not ID?
- wordpress wp_list_pages help
- wp_list_pages to show all pages on all sub pages
- Combine get_page_by_title to exclude pages from wp_list_pages
- How to target grandchild of post_parent using wp_list_pages
- HowTo preserve page hierarchy with wp_list_pages()?
- wp_list_pages() refuses to output posts
- Display custom post types in wp_list_pages
- Post Fetching Ignoring Sort_Column?
- Check if the child page has sibling pages, and bookmark current page
- Using depth=n in wp_list_pages
- Get whole linked with wp_list_pages
- Adding elements to wp_list_pages (within , but before )
- Wp_list_pages not showing children with custom page template
- Add classes + taxonomy terms to wp_list_pages() output
- wp_list_pages() not showing on posts
- horizontal menu / 4-level depth
- Disable the link on certain pages
- Manually adding current_page_parent to wp_list_pages()
- wp_list_pages two columns
- Include parent page in list of child pages
- Creating navigation out of specific IDs and their children?
- Remove and change pages label
- Listing Child Pages in Random order
- List pages including both parent and child pages
- How to display data with pagaination on backend?
- Subpages List Appearing on Every Page
- WordPress list child pages of custom post type
- How to display list of child pages with parent in wordpress?
- How To List Sibling Pages And Include The Featured Image?
- Include Custom Post Type Archive in wp_list_pages
- wp_list_pages change of children and anchor of parent
- Listing current pages subp page in list items in the sidebar
- Check if meta_key exists in wp_list_pages
- Show menu on page with all sub-pages and sub-sub-pages of that page
- Change order that the menu is generated with wp_list_pages
- current_page_item and custom post type?
- How to use custom fields to replace top-level parent title with an image using wp_list_pages?
- WordPress two row automatic sub navigation with double wp_list_pages. Is it impossible?
- Wrapping a function in html tag and return?