The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Comment displayed o...
 
Share:
Notifications
Clear all

Bug [Solved] Comment displayed on several pages

3 Posts
3 Users
0 Reactions
550 Views
Posts: 1
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@pikaniou)
New Member
Joined: 1 year ago
[#8779]

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/

image

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/

image

Says there are 0 comments, but displays the 4 comments in the project:
https://black-orion.fr/manga/faux-depart/chapitre-17/

Capture d’écran 2024 08 19 153847

Can you help me see why this is happening?

Thanks in advance!


2 Replies
Tom
Posts: 509
 Tom
Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@tomson)
Honorable Member
Joined: 10 years ago

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' ) );
}

Asti
Posts: 8208
 Asti
Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@asti)
Illustrious Member
Joined: 8 years ago

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!


Share: