Ajax Slideshow in Post
OK, this turned out to be really simple, flexible and awesome. Your single.php: <div class=”post-body”> <?php the_content(); ?> <div class=”post-pagination”> <?php wp_link_pages(‘before=<p>&after=</p>&next_or_number=number&pagelink= %’); ?> </div> </div> Your script.js: $(document).ready(function(){ jQuery(‘.post-pagination a’ ).live(‘click’, function(e){ e.preventDefault(); var link = jQuery(this).attr(‘href’); jQuery(‘.post-body’).load(link + ‘ .post-body ‘, function(){ jQuery(‘.post-pagination p’).show(); }); return false; }); }); Your post markup: <img … Read more