Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author gVectors Team

    (@gvectors-team)

    Hi ilyas6462,
    Have you tried to use the default comment loader function:

    <?php comments_template(); ?>

    Make sure you don’t load wpDiscuz more than one time on the same page, wpDiscuz doesn’t support multiple comment boxes on same page.

    Plugin Author gVectors Team

    (@gvectors-team)

    Another way to call wpDiscuz file using this PHP script:

    if(file_exists(ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php')){
    	include_once ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php';
    }
    Thread Starter ilyas6462

    (@ilyas6462)

    & html short code?

    Thread Starter ilyas6462

    (@ilyas6462)

    actully i want can add comment bar in “visual composer” via html short code too ?

    Plugin Author gVectors Team

    (@gvectors-team)

    wpDiscuz doesn’t have shordcode

    Thread Starter ilyas6462

    (@ilyas6462)

    can you tell me solution ? which plugin you can recommended ? & how you can add this features ?

    Plugin Author gVectors Team

    (@gvectors-team)

    Ok, try this.
    Put this code in current theme functions.php

    function my_wpdiscuz_shordcode() {
    	if(file_exists(ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php')){
    		include_once ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php';
    	}
    }
    add_shortcode( 'wpdiscuz_comments', 'my_wpdiscuz_shordcode' );

    and try to use this shordcode: [wpdiscuz_comments]

    Please note: WordPress Comment system is designed to be loaded on single post/page, it’s not designed for archive pages like Categories, Tags, Author, Search, etc… So make sure you don’t load widget with this shordcode on non-single (archive) pages.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘add comment bar in custom weight & area’ is closed to new replies.