CSS Treeview Navigation Menu
-
I’m looking to create a treeview navigation menu for a wordpress site I’m creating. The person I’m implementing for has specifically asked for this as they have a large amount of pages.
I currently have a system where you choose your ‘category’ from the links at the top of the page. Once this has been selected, you are shown the page, along with the first set of sub nav (if any) links on the left.
Selecting one of these will then display the content along with a second set of sub nav (if any) links.
This is the code I’m using for this:
$g_page_id = $wp_query->get_queried_object_id();wp_list_pages(‘depth=1&child_of=’.$g_page_id .’&sort_column=menu_order&title_li= ‘);
I have worked my way through the above code to tailor it for what I need, but having a treeview navigation would just be the icing on the cake!
This system is working fine and i’ve managed to make minor adjustments to display the page id/name etc, but I’m stumped beyond this! I found this website through the support forum: which has the desired effect on the links option on the right.
Any help is greatly appreciated!
Oh, and it may be worth noting that WordPress is being used as a CMS – only pages are being used, no posts. Pages are requested via ?page_id=xx, if that makes any difference.
- The topic ‘CSS Treeview Navigation Menu’ is closed to new replies.