• Resolved mariusmrs

    (@mariusmrs)


    Hello, i need to add this awesome plugin to my website.
    The problem is that i have taxonomy pages added to a post, the comments on taxonomy pages are the same with the comments on parent post. The problem is that wpdiscuz replaces the comment form on the post but when i enter the taxnonomy pages the old form appears. I’ve checked all the boxes on form settings, but the taxonomy are’t there.
    Is there a function i can use to show the comment form? I can send you a link to my website on email or smth.

    Thanks.

    • This topic was modified 5 years, 4 months ago by mariusmrs.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support gVectors Support

    (@gvectorssupportmember)

    Thank you @mariusmrs,

    I’m really sorry but wpDiscuz cannot be used on non-single template files (category, tag, author, etc..) it’s only designed for single pages (single.php, page.php, custom-post-type.php). Please don’t try to include wpDiscuz in the category page, it has no chance to work. The comment box duplication will always generate JS errors.

    Thread Starter mariusmrs

    (@mariusmrs)

    I resolved it by removing

    is_singular()

    from

    return apply_filters(‘is_load_wpdiscuz’, $form->getFormID() && (comments_open($post) || $post->comment_count) && is_singular() && post_type_supports($post->post_type, ‘comments’), $post);

    Seems to work fine. Like i said taxonomy comments are the comments of parent post of that taxonomy.

    Plugin Support gVectors Support

    (@gvectorssupportmember)

    @mariusmrs,

    Please remove all the customizations you’ve done.

    As we’ve already mentioned we recommend you do those changes, it causes a lot of JS errors.

    Plugin Support gVectors Support

    (@gvectorssupportmember)

    Hi @mariusmrs,

    As we’ve already mentioned we don’t recommend you do those changes, it causes a lot of JS errors.

    I’ve asked the developers one more time, and they confirmed that the is_singular() must not be removed.

    All elements of the hook are very important.

    Please remove all customizations you’ve made.

    Below is provided an example of how to load the wpDiscuz on archive pages.

    add_filter('is_load_wpdiscuz', function ($isLoad) {
       if (is_archive()) {
           return true;
       }
       return $isLoad;
    });

    You should put the code in the active theme’s functions.php file.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding Comments on Taxonomy’ is closed to new replies.