WordPress doesn't have a good way to generate pages or categories lists, this plug-in is inspirited by the one from Adi Sieker, that was a very good base to start. It uses an array because it can provide better tag options than a simple string launch, but every option has a default value, so if the default one is the one desired can be omitted in the initialization. If you have your custom css with this plug-in you can create also interactive menu or very useful site maps, see screenshots. Bugs can be mailed at: cimmino_DOT_marco_AT_gmail_DOT_com REQUIREMENTS: WordPress = 2.x (tested both with 2.0 and 2.1) INSTALLATION: just copy the php file in your WordPress plug-in directory and activate it USAGE: This is only a small example how to use the plug-in, of course you can add options or just modify them. $params = Array( 'show_all_parents' => 1, 'show_root' => 1, 'show_children' => 1, 'nested' => 1, 'ul_id_parent' => 'navmenu', 'li_class_current' => 'page_item', 'li_class_nocurrent' => 'page_item', 'append_child' => 0, 'show_div' => 0, 'nested_li_ul_li' => 1, 'current' => 0, 'show_all_children' => 1, 'sort_column' => 'menu_order', ); $result = Array(); $result = init_args($params); /* gives the root page ID, should be useful to customize header images for every group of parents-children pages */ $root = $result['root']; /* this function can be called more than one time without calling init_args again, because all options are saved into $result array */ output_parents($result); PARAMETERS (should be added in $params Array): 'type' choose what should be displayed: 'pages' or 'categories' [default: 'pages'] 'current' set the current item [default: the item visited or if it's a post then default is 0] 'list_tag' add all default tags that are
and