WordPress.org

Support

Support » Requests and Feedback » REQUEST: Limit for wp_list_pages()

REQUEST: Limit for wp_list_pages()

  • I would like to request a parameter for wp_list_pages() that limits the amount of links to the pages it returns.

    An example where this might be useful is where you have a constrained menu bar but you only want the first 5 pages. Any more than that will stretch the page/make a new line.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes I’d like to second this request please.

    I’m actually suprised to not see limit in the parameters list.

    Thanks.

    You can already use the include or exclude functions to list specific pages by ID.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘REQUEST: Limit for wp_list_pages()’ is closed to new replies.