I am a real noob at AJAX therefore i wondered the way i might make my comment amounts auto update using jquery and AJAX in Wordpress. Interesting help. Heres my jquery:



            setInterval( "countnumbers();", 2000);

                countnumbers = function(){

                    $(this).load('<?php get_permalink(); ?>, <?php echo get_comments_number(); ?>');

                } // End countnumbers function


Heres my PHP:

    <a href="<?php the_syndication_permalink();?>" target="_blank" class="readstory"></a>
        <?php if(!is_single()) : ?>
        <cite class="commentcount"><?php comments_number('0', '1', '%'); ?></cite>
        <a href="<?php the_permalink();?>" class="comments"></a>
        <?php endif; ?>