View Full Version : Nested Side Bar Menu Not Showing Child Pages in Wordpress

04-13-2010, 09:12 PM
1) Script Title: Nested Side Bar Menu

2) Script URL (on DD): http://www.dynamicdrive.com/style/cs...side_bar_menu/

3) Describe problem: Link to "Original" version: http://www.computerdepot-online.net/

I am using the script in a wordpress site for a left sidebar nav of the pages. I have copied the script and put it in its own js file. I have the header calling the js file (right after the body tag).

My HTML in the sidebar is below:

<div class="vertmenu">
<ul id="vertmenu1">
<?php wp_list_pages('title_li=&depth=4&exclude=9&sort_column=menu_order'); ?>

But I am not getting anything. The css is part is working, but I am not getting the child pages to show up, or the right arrow if there even are child pages.

I am guessing it is something silly on my part. Any help is greatly appreciated.

04-14-2010, 02:50 AM
Got it figured out. If you copy the script into a separate JS file, be sure to delete the script tags at the first and last lines. Oops.