I am attempting to add ajax pagination to wordpress 3.3.1 and should not get results. I acquired the ajax portion working, nevertheless the pages just will not advance. Essentially each time I click "next" it'll reload the present page.

I've the next code, maybe some expert could produce some hint or help. I've demo site setup if you want to have a look it.

This is actually the code

<div id="clip_block"><div id='contentInner'>
<?php echo $post->ID ?>

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>

/* my content */

<?php endwhile; ?></div></div>
<div id='postPagination'>
<?php previous_posts_link('Newer Entries &raquo;') ?>
<?php next_posts_link('&laquo; Older Entries') ?>


This is exactly what I've during my header:

<script type="text/javascript" charset="utf-8">

jQuery('#postPagination a').live('click', function(e){
    var link = jQuery(this).attr('href');
    jQuery('#clip_block').load(link+' #contentInner');

jquery.js is loaded too.

just help

I'm not sure without a doubt, but speaking from experience this is not the easiest method to use AJAX in WordPress. Whenever I personally use AJAX in Wordpress, I particularly send the request to wordpress-includes/admin-ajax.php which handles the request.

Are you able to give a link? I'll have a look.