Issue profil page

Posted in: Newspaper
Post count: 10

Hello Dear Team,

There is a little problem on the profil page

On my profil page I can read 0 comment, but I have at least 200 comments, where is the problem ( please see the picture below)

null

I’m working on localhost currently

Thank you for your help

Best Regards
Melvine

Post count: 9544

It won’t read comments from FB plugin, Disqus, or similar plugins; only built-in WP comments system. I usually edit the template to remove that myself.

Post count: 10

Hi Chris,

Thank you very much for your quick answer.

There is no plugin I think . The comments have been transfer from Joomla in WordPress with the component FG Joomla To WordPress Premium ( here the link : https://www.fredericgilles.net/fr/fg-joomla-to-wordpress/).

Best Regards
Melvine

Post count: 10

The comments are in WordPress, not a plugin no ?

comments in wordpress
I’am new on wordpress, perhaps I don’t understand the structure an the working process

Post count: 20688

Hi,

I believe that if the comments are imported properly in the database they should be displayed
https://www.screencast.com/t/Bmtzqj3T
We have not made any tests in this matter, I couldn’t say what would be the issue. Maybe some other users can provide some of their experience, if they have done this before.

Thanks

Post count: 10

Hi,
I think the problem come from your theme, sorry
If I try to make some modifs on the file :

\wp-content\themes\Newspaper\parts\page-author-box.php

ligne 25
$comment_count = $wpdb->get_var($wpdb->prepare(“SELECT COUNT(*) AS total FROM $wpdb->comments WHERE comment_approved = 1 AND user_id = %d”, $part_cur_auth_obj->ID));

for example replace this part

$part_cur_auth_obj->ID
by
$part_cur_auth_obj->user_url

I have a number of comments who is displaying.

comments

But not the good number, it’s the number of all the comments of the registered members. Me normally I have 235 comments in my profil.

Thank you very much

Best Regards

Post count: 1341

Try this method:

1. Revert all changes in files back.
2. Login in your site.
3. Write test comment.
4. Check counter of your comments again.

Another words: You have to post comments while being logged in as an author for the theme to detect the author’s comments.

Post count: 10

Hi Edward,
Good Idea, but not a fix for my case, now I have 1 comment lol

Post count: 22421

Hello,

unfortunately the theme cannot count comments you previously had on other themes. This also applies to views. Sorry but the theme can only count comments that are created wile the theme is active. It is a theme comment count and it will not keep counting when the theme is off or other comments pulled from other themes.

Thank you for your understanding.

Post count: 10

Hello,

Not a very great function so, in any case for me.

But thank you very much for this clear answer 😉

Best Regards
Melvine

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.