homepage Welcome to WebmasterWorld Guest from 184.73.40.21
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / WordPress
Forum Library, Charter, Moderators: lorax & rogerd

WordPress Forum

    
Wordpress Menu
jo3y



 
Msg#: 4530827 posted 6:23 pm on Dec 24, 2012 (gmt 0)

Hey guys,

Was wondering if anyone had a script solution to this or thoughts:

On the site I am working on, I have to reserve the blog functionality for a news section, so I need to find a solution to allegedly paginate pages, not posts. I think my logic is sound, so bear with me ...

I have a sub-menu I created in Wordpress for 7 pages. I named each link 01,02,03 ... etc. and the menu is called by, let's say, wp_nav_menu( array( 'menu' => 'Secondary Navigation')) which outputs the menu as a string.

So, 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 pages(menu items), then comparing the current page to the total, and setting the bracket links accordingly.

Any thoughts on this?

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WordPress
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved