Happy holidays :)
We're trying to add pagination to our site, with the aim of implementing some nice Ajax scrolling, which is going to look and feel really good.
We've got the php code implemented and, successfully, pagination is showing.
However depending on how many posts we tell WordPress to load, it loads that many versions of tiles. So for example we have done 3 posts per page, it loads 3 versions of tiles with 3 tiles in each.
in our page.php:
<?php echo do_shortcode('[posts_2 posts_per_page="3" paging="true" order="DESC" orderby="date"]');
in the content template:
<?php if ( function_exists ( 'the_loop_wp_tiles' ) ) the_loop_wp_tiles(); ?>
Obviously the theme is calling a shortcode which is probably causing the problem...
How can we get these tiles integrated correctly?
Our full page.php:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting"> <section class="post-content clearfix" itemprop="articleBody"> <?php echo do_shortcode('[posts_2 posts_per_page="3" paging="true" order="DESC" orderby="date"]'); ?> </section> <!-- end article section -->
Thanks very much for your patience Mike, this is the greatest & best supported free plugin I've ever seen!