- -
-
-
-
-
-
-
-
- - - - - term_id); +// foreach ( (array) $menu_items as $key => $menu_item ) { +// if ( $menu_item->menu_item_parent == 0 ) : +// $title = $menu_item->title; +// $url = $menu_item->url; +// //echo print_r($menu_item); +// echo '
  • ' . $title . '
  • '; +// endif; +// } + +// wp_list_pages( ); + $parent_args = array( + 'posts_per_page' => 0, + 'offset' => 0, + 'orderby' => 'order', + 'order' => 'ASC', + 'post_type' => 'page', + 'post_parent' => '0', + 'post_status' => 'publish', + 'suppress_filters' => false, + 'post_name__in' => ['services','portfolio','contact-us'], + ); + $all_parents = get_posts( $parent_args ); + + foreach ($all_parents as $a_parent) { +// echo print_r($a_post); +// if ( $a_parent->post_parent == 0) { + ?> + +
    + +
    +
      + +
    • +
      post_type; ?>> +
      +
      +
      +

      post_title; ?>

      +
      +
      + +

      ID) ); ?>

      + +
      +
      +
      +
      +
    • + + + +
    +
    + - + // Create a setting and control for each of the sections available in the theme. for ( $i = 1; $i < ( 1 + $num_sections ); $i++ ) { $twentyseventeencounter = $i; - twentyseventeen_front_page_section( null, $i ); +// twentyseventeen_front_page_section( null, $i ); } endif; // The if ( 0 !== twentyseventeen_panel_count() ) ends here. ?> diff --git a/header.php b/header.php index 63b4b07..90e8737 100755 --- a/header.php +++ b/header.php @@ -22,26 +22,44 @@ -> +>
    - + + +
      - term_id); - foreach ( (array) $menu_items as $key => $menu_item ) { - if ( $menu_item->menu_item_parent == 0 ) : - $title = $menu_item->title; - $url = $menu_item->url; - //echo print_r($menu_item); - echo '
    • ' . $title . '
    • '; - endif; + term_id); +// foreach ( (array) $menu_items as $key => $menu_item ) { +// if ( $menu_item->menu_item_parent == 0 ) : +// $title = $menu_item->title; +// $url = $menu_item->url; +// //echo print_r($menu_item); +// echo '
    • ' . $title . '
    • '; +// endif; +// } + $nav_items_args = array( + 'posts_per_page' => 0, + 'offset' => 0, + 'orderby' => 'order', + 'order' => 'ASC', + 'post_type' => 'page', + 'post_parent' => '0', + 'post_status' => 'publish', + 'post_name__in' => ['services','portfolio','contact-us'], + ); + $nav_items = get_posts( $nav_items_args ); + echo '
    • Home
    • '; + foreach ( $nav_items as $nav_item ) { + echo '
    • ' . $nav_item->post_title . '
    • '; } + ?>
    @@ -54,23 +72,27 @@ - - + + -
    - + +