WordPress.org

Ready to get started?Download WordPress

Forums

Paginating a Menu List Created in WordPress (1 post)

  1. jo3y465
    Member
    Posted 1 year ago #

    Hey guys,

    On the site I am working on, I reserved the blog functionality for a news section, so I need to find a solution to allegedly paginate pages, not posts for a portfolio submenu.

    I have the sub-menu created for 7 pages. I named each link 01,02,03 ... etc. and the menu is called by wp_nav_menu( array( 'menu' => 'Secondary Navigation')).

    My goal is to make it appear as if it's paginated and use lessthan greaterthan for left and right navigation. No numbers in between, etc.

    I was thinking of looping preg_match "1","2" etc. against the outputted string to get the total number of menu items/pages, but am not sure where I could go from there:

    Any thoughts on this?

Topic Closed

This topic has been closed to new replies.

About this Topic