I have already develop wordpress custom type.But I cant add numeric pagination.I need it very urgent. Here is my script.

$temp = $wp_query;
$wp_query = null;
$wp_query = new WP_Query();
$wp_query->query('showposts=2&post_type=product&menu_order => 101'.'&paged='.$paged);
if ($wp_query->have_posts()) : while ($wp_query->have_posts()) :        
    $wp_query->the_post(); global $product;?>
<li class="product">    
    <a href="<?php echo get_permalink( $loop->post->ID ) ?>" title="<?php echo esc_attr($loop->post->post_title ? $loop->post->post_title : $loop->post->ID); ?>">
    <?php woocommerce_show_product_sale_flash( $post, $product ); ?>
    <?php if (has_post_thumbnail( $loop->post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_catalog'); else echo '<img src="'.woocommerce_placeholder_img_src().'" alt="Placeholder" width="300px" height="300px" />'; ?>
                    <h3><?php the_title(); ?></h3>
                    <span class="price"><?php echo $product->get_price_html(); ?></span>                    
                <?php woocommerce_template_loop_add_to_cart( $loop->post, $product ); ?>
<?php endwhile; ?>
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
<?php //wp_reset_query(); ?>
<div style="clear:both"> </div>
$wp_query = null;
$wp_query = $temp;
<?php endif; ?>

Read more here:: Custom post type numeric pagination


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: