Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter chrisgot

    (@chrisgot)

    Are there any plans to include Javascript callbacks like WP Ajaxify Comments which would make wpDiscuz work with Ajax and infinte scroll?

    Plugin Author gVectors Team

    (@gvectors-team)

    Hi chrisgot,
    wpDiscuz is AJAX comment system and it has Lazy Load infinite scroll. Why you don’t use that? All actions of wpDiscuz is AJAX powered, could you please explain your requirement?

    I currently use a self-built theme with the following code:

    add_action('wp_ajax_getPostComments', 'getPostComments');
    add_action('wp_ajax_nopriv_getPostComments', 'getPostComments');
    
    function getPostComments() {
    			$ID = $_POST["post_id"];
    
    			query_posts( array( 'p' => $ID ) );
    			if ( have_posts() ) {
    				while( have_posts() ) {
    					the_post();
    					comments_template();
    					die();
    				}
    			}
    			exit;
    }

    However, when I’m calling this action, it returns the default WP comments and not the WPDiscuz ones.

    Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wpDiscuz and infinite scroll?’ is closed to new replies.