I've got a Wordpress Sidebar menu that's becoming too lengthy and so i need just to achieve the menu products show and never the sub-products.

Does anybody understand how to add folding menu subitems functionality into it please?

I'm utilizing a wordpress plugin known as: wordpress-wiki and that i have added:

<?php wp_list_pages('post_type=wiki'); ?>

So, I recieve a listing of pages. That's great but I'm not going the subpages around the sidebar.php page, or at best not showing constantly.

Thanks

<?php wp_list_pages('post_type=wiki&depth=1'); ?>