Advertisement
alchymyth

Untitled

Apr 7th, 2011
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.84 KB | None | 0 0
  1.   <?php // if there are subpages of the current page,they will be listed here
  2.                
  3.                         if($post->post_parent)
  4.                         $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0&sort_column=menu_order"); else
  5.                         $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0&sort_column=menu_order");
  6.                         if ($children && !$s) { ?>
  7.  
  8.                         <div class="box-right">
  9.                                
  10.                                 <h4>Sub-Pages</h4>
  11.                        
  12.                                 <ul>
  13.                                         <?php echo $children; ?>
  14.                                 </ul>
  15.                        
  16.                 </div>
  17.                        
  18.                 <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement