WordPress.org

Ready to get started?Download WordPress

Forums

REQUEST: Limit for wp_list_pages() (3 posts)

  1. Rebecca Putinski
    Member
    Posted 5 years ago #

    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.

  2. DrCrypto
    Member
    Posted 5 years ago #

    Yes I'd like to second this request please.

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

    Thanks.

  3. Chrisber
    Member
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic