Title: Getting started &#8211; Limit and Offset
Last modified: September 4, 2017

---

# Getting started – Limit and Offset

 *  Plugin Author [Matt Keys](https://wordpress.org/support/users/mattkeys/)
 * (@mattkeys)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/getting-started-limit-and-offset/)
 * _NOTE:_ This documentation is also included in the /documentation/ folder with
   your plugin download, and is easier to read in that format.
 * **LIMIT AND OFFSET**
 * Often website designs call for a menu to be split up into multiple columns, or
   rows. Such as a multi-column footer sitemap. WP Nav Plus provides the capabilities
   you need to quickly build these custom menu layouts using Limit and Offset.
 * Build your custom menu layout in one of two ways:
 * _Easy Method (Widget)_
 * The easiest way to get up and running quickly with WP Nav Plus is to make use
   of the widget. In this section I will show you how to implement a basic divided
   menu using the WP Nav Plus widget.
    1. Login to your WordPress Admin page (usually [http://yourdomain.com/wp-admin](http://yourdomain.com/wp-admin))
    2. Navigate to the Widgets screen (Under “Appearance”)
    3. Notice the new widget called “WP Nav Plus” (pictured below)<br />
        ⌊WP Nav Plus
       Inactive Widget⌉
    4. Click and drag this widget into the desired sidebar placement (pictured below).
       NOTE: My sidebar is called “Primary Sidebar”, your sidebar may be named differently.
       Please see your theme documentation for additional details about your sidebars.
       <br />
        ⌊WP Nav Menu Limit and Offset⌉
    5. Specify your menu “limit” and/or your menu “offset” as needed to reach your 
       desired output.
    6. Use multiple widgets as needed to complete your custom layout.
 * _Advanced Method (Function)_
 * The documentation above has focused on using the WP Nav Plus widget as the easiest
   way to get started with WP Nav Plus. However for advanced users who want more
   control over the output of their menu, WP Nav Plus can be used with the built
   in WordPress [wp_nav_menu function](http://codex.wordpress.org/Function_Reference/wp_nav_menu)
 * WP Nav Plus adds two arguments to the wp_nav_menu function for use with custom
   menu layouts.
    - _option: _**limit**
    - _type: _int
    - _default: _false
    - _desctiption: _Limit the number of top-level menu items to return when displaying
      your menu. Given a menu with 10 top-level items in it, and a limit set to 
      5, only the first 5 top-level items would be displayed. All menu children 
      belonging to the displayed top-level menu items will be left alone.
 *  - _option: _**offset**
    - _type: _int
    - _default: _false
    - _desctiption: _Offset or “skip” a set number of top-level menu items when 
      displaying your menu. Given a menu with 10 top-level items in it, and an offset
      of 3, only the last 7 top-level menu items would be displayed.
 * _Basic Example: (assumes a menu iwth 10 items in it)_
 *     ```
       wp_nav_menu(
       	array(
       		'theme_location' => 'my_menu',
       		'limit' => 5,
       		'offset' => 2
       	)
       );
       ```
   
 * The above example would create a menu which displayed only 5 menu items, skipping
   over the first two menu items, showing the next five, and then nothing after 
   those five.

The topic ‘Getting started – Limit and Offset’ is closed to new replies.

 * ![](https://ps.w.org/wp-nav-plus/assets/icon-256x256.jpg?rev=1724550)
 * [WP Nav Plus](https://wordpress.org/plugins/wp-nav-plus/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-nav-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-nav-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-nav-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-nav-plus/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Matt Keys](https://wordpress.org/support/users/mattkeys/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/getting-started-limit-and-offset/)
 * Status: not a support question