theme_location == 'primary' ) return $items .= '
  • Donate
  • '; } add_filter('wp_nav_menu_items','hp_add_last_nav_item',10,2); function hp_list_child_pages() { global $post; if ( is_page() && $post->post_parent ) $childpages = wp_list_pages( array( 'title_li' => '', 'sort_column' => 'post_title', 'child_of' => $post->post_parent, 'depth' => 1, 'echo' => 0 )); else $childpages = wp_list_pages( 'sort_column=post_title&title_li=&child_of=' . $post->ID . '&echo=0' ); $output = '