Help display child pages in columns
-
Hi,
How can I change this code so it displays the cild pages in columns?
<?php global $wp_query; if( empty($wp_query->post->post_parent) ) {$parent = $wp_query->post->ID;} else { $parent = $wp_query->post->post_parent;} ?> <?php if(wp_list_pages("title_li=&child_of=$parent&echo=0" )): ?> <div id="submenu"> <ul><?php wp_list_pages("title_li=&child_of=$parent" ); ?></ul> </div> <?php endif; ?>
I would also like to keep the fact that the code displays the cild pages of the current page.
Hope someone can help me out!
/C
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Help display child pages in columns’ is closed to new replies.