Hello,
First of all, thank you for your plugin which is really complete.
On my site, I use the madara theme with your comments plugin.
I have projects with chapters. Users can post comments on the projects and on the chapters.
But I've noticed that sometimes the comments displayed aren't those of a chapter, but those of the project, or a mixture of comments from several pages. I'll give you a few examples below.
I tested this with the default Wordpress system, which doesn't do this.
Example on the site :
4 comments posted that are correct:
https://black-orion.fr/manga/faux-depart/
Says that there are 2 comments, but doesn't display them and when you click on ‘most recent’ or ‘most popular’ you get lots of comments mixed up:
https://black-orion.fr/manga/faux-depart/chapitre-12/
Says there are 0 comments, but displays the 4 comments in the project:
https://black-orion.fr/manga/faux-depart/chapitre-17/
Can you help me see why this is happening?
Thanks in advance!
Hi @pikaniou,
Please note that comments are tied to the post ID. In your case, the projects with chapters are loaded on the same page/post, meaning the ID is the same. As a result, the comment system cannot differentiate which comments belong to which content.
In some cases this PHP code helps and fixes the issue. Use Code Snippets plugin or put this directly in the current active theme's functions.php file:
global $wp_manga_comments; if($wp_manga_comments){ add_action('wpdiscuz_button', array( $wp_manga_comments, 'chapter_comment_field' ) ); }
We have not received a reply from you for over a couple of weeks, therefore we will be closing this topic. Please create a new one if you require any additional help.
Thank You!