“0 comments” on post wrongly displays only “comments”
-
Hi @noaptelinistita
Thanks for choosing IntellyWP products.Could you please send us more information about how could we reproduce this issue?
We need the name of your WordPress theme and the list of all plugins installed on your website and some screenshots of your plugin settings.I hope you can understand that, without information, it is very difficult for us to figure out how to reproduce your issue and, eventually, help you to fix it.
Thank you
IntellyWP
Newspaper theme by Tagdiv.
Active plugins:
Akismet anti-spam
AMP
Duplicate article
Classic editor
GDPR Cookie Consent
Google Analytics for WordPress by MonsterInsights
Inline Related Posts
Newsletter
Page Links To
ShareThis Share Buttons
tagDiv Cloud Library
tagDiv Composer
tagDiv Newsletter
tagDiv Social Counter
The Events Calendar
WP Mailto Links – Hide & Protect Emails
WP User Avatar
Yoast SEOPlugin settings:
Minimalist theme
Default everything else
3 boxes per single post
60 words between boxes
categories and tagsHey @noaptelinistita
thank for the information provided.We are checking your ticket right now, we will reply soon.
Thanks for your patience.
IntellyWP
Hey @noaptelinistita
i tried unsuccessfully to reproduce your same configuration installing Newspaper theme (7.7) and most of the mentioned plugins
Have you tried to disable each plugin, one by one, keeping active our Inline Related Posts plugin?
Could you please send me more details about the configuration of Newspaper theme?
Thank you
IntellyWP
Hello,
Steps to reproduce the issue:
– install the tagDiv Cloud Library plugin;
– from the Cloud Library, install the Gossip theme;
– edit the Single Cloud Template with the tagDiv composer by adding the element called “Single Post Comments Counter”. This is the one that displays incorrectly.You will most likely encounter the issue.
If I uninstall the tagDiv Cloud Library plug-in, the single post template reverts from the Gossip theme to the default theme template and it shows “0 comments” correctly. But I don’t want to use the default template…
Also, I tried uninstalling every other plug-in too (other than tagDiv Cloud Library), but the issue still persists.
-
This reply was modified 6 years ago by
noaptelinistita.
Also, the problem occurs only when the automatic IRP are in place.
If I select a custom IRP, the problem stops, the no. of comments element displays correctly.Hey @noaptelinistita
I tested successfully the following fix.
Could you please, after a plugin backup, edit the following file
/wp-content/plugins/intelly-related-posts/includes/core.php
and replace
add_filter(‘the_content’, ‘irp_the_content’, 9999);
with
add_filter(‘the_content’, ‘irp_the_content’);
Please let me know
Thank you
IntellyWP
Hello,
I confirm it solves the problem.
Thank you so much for investing time into this!
Unfortunately this creates other issues… 🙁
Here’s a screenshot:
https://comunitatea50plus.ro/wp-content/uploads/2020/05/irp-bug.pngIt adds an extra <p></p> to the IRP and sometimes 2 consecutive IRPs…
I will revert to the original line in core.php because it’s the lesser problem…
Thank you.
Hey @noaptelinistita
Could you please increase the interval between boxes and use the following PHP line instead?
add_filter(‘the_content’, ‘irp_the_content’, 99);
Please let me know
Thank you
IntellyWP
Hello,
I edited the line in core.php and increased the interval to 80, 100, 150, 300 words between boxes. Unfortunately the problem persists.
Thank you.
Hey @noaptelinistita
Could you export few articles from your blog and send us the XML file to import these articles on our test WordPress installation?
Thank you
IntellyWP
Hello,
I’m not sure how complex the XML should be. Should I export it directly from my database or with a plugin (which only exports certain information)?
Hello @noaptelinistita
You can generate this file from your WordPress website going to Tools > Export > Posts > Download export file
Please let me know
IntellyWP
Hello,
Sorry for delaying.. holiday times..
Here’s an export:
https://bit.ly/2ZpSSmqThank you!
-
This reply was modified 5 years, 10 months ago by
noaptelinistita.
-
This reply was modified 6 years ago by
The topic ‘“0 comments” on post wrongly displays only “comments”’ is closed to new replies.
(@noaptelinistita)
6 years, 1 month ago
Hello,
I recently installed your beautiful plugin. However, after install, on Single Post Template, the no. of comments element started showing “commments” instead of “0 comments” when there are no comments on a post.
When there’s at least 1 comment, it correctly shows “1 comment”.
If I uninstall the IRP plugin, it correctly shows “0 comments”.
What could be the conflict?
The no. comments element is below the post main image.
Example 0 comments: https://comunitatea50plus.ro/ganduri/7-lucruri-aflate-dupa-ce-ati-fost-etichetat-drept-varstnic-pentru-ca-aveti-peste-65-de-ani/
Example at least 1 comment: https://comunitatea50plus.ro/timp-liber/8-plante-care-se-cultiva-cu-usurinta-in-ghiveci-ca-sa-aveti-un-balcon-de-vis-de-1-mai/
The page I need help with: [log in to see the link]