Im cutting a template I acquired included in wordpress, im getting difficulty using the menu, I have to possess the first list item(
<li> ) that's came back in the wordpress_list_pages function to possess value="1" within the tag too therefore the jquery menu begins there, therefore will be the first item
Maybe wordpress codex can help you: http://codex.wordpress.org/Function_Reference/wp_list_pages
It is recommended to user get_pages (http://codex.wordpress.org/Function_Reference/get_pages) so that you can write your personal wrapper.
If you wish to focus the very first navigation item with jquery, it can be done such as this:
I'd only use PHP string manipulation techniques to exchange the very first demonstration of found text having a modified version from it. For instance:
<?php $navStr = wp_list_pages('title_li=&depth=2&sort_column=menu_order&echo=0'); $navStr = preg_replace('/<li class="/i', '<li value="1" class="', $navStr, 1); echo $navStr; ?>