• hi, I’m using fold_page_list (https://www.webspaceworks.com/resources/wordpress/30/) to realize a menu with some submenus. is it possible to sort each level of navigation in different way?
    for example first level sorted by id, second level by name and third level again by id?

    here’s the code I use to show my menu:

    <div id="sidebar">
    	<!-- Top level navigation -->
    	<ul id="first level navigation">
    		<?php wswwpx_fold_page_list ('depth=1&sort_column=id&title_li='); ?>
    	</ul>
    	<!-- Sub level navigation -->
    	<?php
    		$g_page_id = $wp_query->get_queried_object_id();
    		$ancestorIDs = _wswwpx_page_get_ancestor_ids($g_page_id);
    		$grandParent = $ancestorIDs[1];
    	?>
    
    	<ul id="secondLevel">
    		<?php wswwpx_fold_page_list("title_li=&sort_column=id&child_of=".$grandParent); ?>
    	</ul>
    </div>

    I tried to change the value of sort_column in the second level navigation id, but this hides the menu. and then I’d like to sort in a different way the children of my second level navigation that I can’t control from this code.
    is that possible?

    thanks in advance
    please help me, I really need this!

  • The topic ‘fold page list and alfabetic sorting’ is closed to new replies.