Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9210329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:02:59+00:00 2026-06-18T01:02:59+00:00

I have some menu items in a menu at location main-menu. By using wp_nav_menu(

  • 0

I have some menu items in a menu at location “main-menu”.
By using wp_nav_menu( array( 'theme_location' => 'main-menu' ) ); , i get all the items in a div.

Now i just need to show 10 menu items in present div and the remanining in other div (say id=”new”) just adjacent to it. Again if the div with id “new” has 10 menu-items in it, again a new div will be created and the remaining items are shown in it.

So is there a way to access the array that contains these menu-items?
Please help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:03:00+00:00Added an answer on June 18, 2026 at 1:03 am

    A menu is a list of items, wp_nav_menu just displays the menu. If you want to learn how to create a menu or get its items on an array you can modify and display, check:

    http://codex.wordpress.org/WordPress_Menu_User_Guide

    http://codex.wordpress.org/Function_Reference/wp_get_nav_menu_items

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some menu items that are styled using a background gradient on hover
I have a simple header with some menu items: <div id=header> <ul id=menu> <li
I have some jquery which will calculate the items in my menu and assign
I have some simple markup: <table> <tr> <td>Menu Item</td> </tr> </table> <div> <table> <tr>
I have the following two links in my main menu, and I have some
I have a drop down menu which fills with some doc names. Now when
I have some menu items on the right hand side of my website that
I have some set of list items like- <div class=smenu> <ul> <li ><a href=index.html><img
I have a triangle next to menu items, using pure CSS. It works flawlessly
I have some text from a breadcrumb which I am using to open menu

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.