Posts Template for Twenty Ten WordPress Default Templete


        $args=array(
          ‘post_type’ => ‘post’,
          ‘post_status’ => ‘publish’,
          ‘paged’ => $paged,
          ‘posts_per_page’ => 5,
          ‘caller_get_posts’=> 1
        );
        $temp = $wp_query;
        $wp_query = null;
        $wp_query = new WP_Query($args);
        get_template_part( ‘loop’, ‘index’ );
Advertisements

Published by

Jayanti Solanki

Web development is my first love. Over the last 8+ years, I have developed an array of websites for many startups & businesses using HTML5, CSS3, WordPress, Magento and PHP.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s