Query to Dispaly post

<?php $paged = (get_query_var(‘paged’)) ?

get_query_var(‘paged’) : 1;

$args = array( ‘post_type’ => ‘neighbor’, ‘post_status’ => ‘publish’,’paged’ => $paged );

$wp_query = new WP_Query($args);

while ( have_posts() ) : the_post(); ?>

<div id=”cont_box”>

<?php if ( has_post_thumbnail() ) { the_post_thumbnail(array(240,160)); } ?>

<h2><?php the_title() ?></h2>

<?php the_content() ?>

</div>

<?php endwhile;  wp_reset_query(); ?>

<?php if(function_exists(‘wp_paginate’)) { wp_paginate(); } ?>

Site Map

<?php           // Add categories you’d like to exclude in the exclude here

$cats = get_categories(‘exclude=’);

foreach ($cats as $cat) {

echo “<li class=’noli’><h3>”.$cat->cat_name.”</h3>”;

echo “<ul>”;

query_posts(‘posts_per_page=-1&cat=’.$cat->cat_ID);

while(have_posts()) {

the_post();

$category = get_the_category();

// Only display a post link once, even if it’s in multiple categories

if ($category[0]->cat_ID == $cat->cat_ID) {

echo ‘<li><a href=”‘.get_permalink().'”>’.get_the_title().'</a></li>’;     }  }

echo “</ul>”;

echo “</li>”;    }              ?>

Display Childe pages

<?php wp_list_pages(‘title_li=&child_of=’.$post->ID.”); ?>

Or using page id

<?php wp_list_pages(‘title_li=&child_of=6’); ?>

 

And more  using page id

<?php

 $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');

  if ($children) { ?>

  <ul><?php echo   $children; ?>  </ul>

  <?php } ?>

Dispaly Menu

Using Name:

<?php wp_nav_menu(array(‘menu’ => ‘mymenu’)); ?>

From admin:

<?php wp_nav_menu( array( ‘container_class’ => ‘menu-header’, ‘theme_location’ => ‘primary’ ) ); ?>