سرویس Pastebin (نسخه آزمایشی)
function wpschool_loadmore_ajax_handler(){
 $args = json_decode( stripslashes( $_POST['query'] ), true );
 $args['paged'] = $_POST['page'] + 1; 
 $args['post_status'] = 'publish';
 query_posts( $args );
 if( have_posts() ) :
 while( have_posts() ): the_post();
<div class="col-md-3">
                        <article class="panel panel-default">
              <div class="panel-body">
                <figure class="img">
                  <?php the_post_thumbnail('full');?>
                  <div class="ovrly"></div>
                  <div class="buttons">
                    <a href="<?php the_permalink(); ?>" class="fa fa-ellipsis-h"></a>
                  </div>
                </figure>
                <div class="post">
                  <h5><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
                  <p><?php the_excerpt(); ?></p>
                </div>
              </div>
              <section class="panel-footer">
                <div class="row">
                  <div class="col-md-5"><i class="fa fa-user-o"></i> <?php the_author_posts_link(); ?></div>
                  <div class="col-md-4"><i class="fa fa-eye"></i> <?php echo the_views(); ?></div>
                  <div class="col-md-3"><i class="fa fa-comments-o"></i> <?php echo get_comments_number(); ?></div>
                </div>
              </section>
            </article>
                    </div>

 endwhile;
 endif;
 die; 
}
add_action('wp_ajax_loadmore', 'wpschool_loadmore_ajax_handler'); 
add_action('wp_ajax_nopriv_loadmore', 'wpschool_loadmore_ajax_handler');