mgmartel / WP-Tiles

Add beautiful, fully customizable post tiles or tiled galleries anywhere on your WordPress site easily with WP Tiles.
http://wp-tiles.com/
37 stars 25 forks source link

Layout is broken with ajax pagination #19

Open kotmatpockuh opened 9 years ago

kotmatpockuh commented 9 years ago

If i set such code in .php template:

          <?php // page.php
            if ( function_exists( 'the_wp_tiles' ) ) {
              the_wp_tiles( array(
                'posts_per_page' => 7,
                'order'          => 'DESC',
                'orderby'        => 'date',
                'grids'          => 'home',
                'paged'          => ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1
              ) );
            }
          ?>

first 7 look normally. But!

if i click load more, i get:

http://i.imgur.com/sklg9DT.png

why? also if i set (for example) 'posts_per_page' => 20 - all is ok, this article 1 is displayed normally

how can we solve this trouble? (on console i see, that wp tiles generate json output with this wrong element)