how can create template blog page in wordpress

<?php 
/*     Template Name: Blog 
    GREEN EYE Theme's Blog Posts Showung Template
    Copyright: 2013, D5 Creation, www.d5creation.com
    Based on the Simplest D5 Framework for WordPress
    Since green 1.2.6
*/

get_header('inner');?>
<div class="blog_inner_content">
         <div class="blog_left">

<?php
$args = array( 'post_type'=> 'post','posts_per_page' =>'5', 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ) );
query_posts( $args ); 
if (have_posts()) : while (have_posts()) : the_post();?>
  <h5><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
  <?php the_content(); ?>
 <div class="clear"> </div>
 <p> <span class="entry-date">This entry was posted in <?php
$category = get_the_category();
echo $category[0]->cat_name;
?> <?php echo get_the_date(); ?>,<?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></span> <?php the_tags('<br />Tags: ', ', ', '<br />'); ?></p>
 <?php endwhile; ?>
 <div class="pagination">
 <span><?php previous_posts_link('&laquo; Previous Entries') ?>
<?php next_posts_link('Next Entries &raquo;','') ?></span>
</div>
 
 <?php  else:  ?>
 
 <h1 class="arc-post-title">Sorry, we couldn't find anything that matched your search.</h1>
       
        <h3 class="arc-src"><span>You Can Try Another Search...</span></h3>
        <?php get_search_form(); ?>
        <p><a href="<?php echo home_url(); ?>" title="Browse the Home Page">&laquo; Or Return to the Home Page</a></p><br />
        <h2 class="post-title-color">You can also Visit the Following. These are the Featured Contents</h2>
        <div class="content-ver-sep"></div><br />
        <?php get_template_part( 'featured-box' ); ?> 
 
<?php endif; wp_reset_query(); ?>
</div>
     <div class="blog_sidebar">
 <?php 
if ( dynamic_sidebar('blog_side_1') ) : 
else : 
?>
    <?php endif; ?>
        </div>
       
    </div>
    </div>
         <?php get_footer('inner'); ?>

wordpress submit contact form submit to jquery

<script type="text/javascript">
$(function(){
           var templateDir = "<?php bloginfo('template_directory') ?>";
           var file="/contact.php";
                    $("#ContactForm").validate({
          submitHandler: function(form) {
           $.post(''+templateDir+file, $(form).serialize(), function(data)
            {
            alert(data);
            $("#ContactForm").find("input[type=text], textarea").val("");
            });   
          }
      });
   
});                  
</script>

how can use shortcode in theme on wordpress

<?php echo do_shortcode("[example_shortcode]"); ?>

menu walker dropdown wordpress function

use to template

wp_nav_menu(array( 'theme_location' => 'primary', // your theme location here 'walker' => new Walker_Nav_Menu_Dropdown(), 'items_wrap' => '', ));

function to add

class Walker_Nav_Menu_Dropdown extends Walker_Nav_Menu{ // don't output children opening tag (`
    `) public function start_lvl(&$output, $depth){} // don't output children closing tag public function end_lvl(&$output, $depth){} public function start_el(&$output, $item, $depth, $args){ // add spacing to the title based on the current depth $item->title = str_repeat(" ", $depth * 4) . $item->title; // call the prototype and replace the
  • tag // from the generated markup... parent::start_el(&$output, $item, $depth, $args); $output = str_replace('
  • with the closing option tag public function end_el(&$output, $item, $depth){ $output .= "
\n"; } }  

display all page content on homepage wordpress

<?php
   //$args=array('post_type' => 'page');
   $my_query = new WP_Query( array ('orderby' => 'menu_order', 'posts_per_page' => '5','post_type' => 'page' ));
   //print_r($my_query);
if( $my_query->have_posts() ) {
  while ($my_query->have_posts()) : $my_query->the_post();
   $id = get_the_ID();
   $value    = wp_specialchars( get_post_meta($id, 'class_name', true ));
  ?>
      <div class="<?php echo $value;?>" id="<?php echo $value;?>">
      <?php the_title();?><br>
  <?php the_content(); ?>
  </div>
    <?php
  endwhile;
}
?>

how can get latest 3 pages in wordpress

how can get latest 3 pages  in wordpress
<?php
$args=array('showposts'=>3,'post_type' => 'page','caller_get_posts'=>1);
   $my_query = new WP_Query($args);
if($my_query->have_posts() ){
  while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <p><small><?php the_time('m.d.y') ?></small> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
    <?php
  endwhile;
}
?>

how can get latest 3 post wordpress

how can get latest 3 post wordpress
<?php
 $lastestposts = get_posts('numberposts=3');
 foreach($lastestposts as $post) :
    setup_postdata($post);
 ?>
 <h2><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></h2>
 <?php echo  the_content(); ?>
 <?php endforeach; ?>

how can change particular menu on wordpress

u can call particular menu id  hide function in jquery...
$('#menu-item-16').hide();

wordpress how can determine if user currently logged in or nor

<?php
$cuser = wp_get_current_user();
if ( 0 == $cuser->ID ) {
    // Not logged in.
} else {
    // Logged in.
}
?>

Jquery date of birth format

 u can use

$(".datepicker").datepicker({
    showOn: "both",
    buttonImage: "/images/calendar.png",
    buttonImageOnly: true,
    yearRange: '1910:2010',
    changeYear: true
}); or

 $( "#dob" ).datepicker({  maxDate: '0'});