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 ?>
<?php

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$wp_query->query('cat='.$post_categories.'&posts_per_page=6&paged='.$paged);
?>
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>

/* my content */
                </div></div>

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

</div>

This is exactly what I've during my header:

<script type="text/javascript" charset="utf-8">
jQuery(document).ready(function(){

jQuery('#postPagination a').live('click', function(e){
    e.preventDefault();
    var link = jQuery(this).attr('href');
    jQuery('#clip_block').html('Loading...');
    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.