• Hi,

    This is my first post in this forum so I hope I am posting in the right category with a clear enough title.

    I am struggling with comments on a WordPress website : it was not developed by me initially and I am pretty new to WordPress. So there is my issue :

    I have different pages where comment are shown. Each registered user can add a post as it’s a classified ad page. Then once a user have add an ad, every users can consult the page and see comments.
    Only registered users can post comments.

    I am correctly calling <?php comments_template(); ?> in my single.php as comments are correctly showing for Admin users and the user who posted the classified ad.

    But my issue is that I don’t know why other peoples are not capable of getting the comments showed. I tried to request manually the comments via an get_comments(array(“post_id” => get_the_ID()));
    get_the_ID() returns me the correct ID so the problem does not seems to be here.

    However something strange is happening : get_comments_number() return me the correct amount of comments.
    I am currently using this method to get the comments :

    wp_list_comments( array(
    					'style'       => 'ol',
    					'short_ping'  => true,
    					'avatar_size' => 74,
    					'callback'	  => 'nyfc_comments'
    					));
    					?>

    This method works for post author and admins.

    I don’t have any special plugin included that could alter the comments nor the users roles.

    Do you have any clue ? Is there a WordPress restriction about non-admin posts ? About comments ?

    I hope that I had been clear enough, if not don’t hesitate to ask me further questions.

    Thank you, I am struggling on this since two days and I do not see any solutions…

    [ Multiple bumps deleted. No bumping please. ]

  • The topic ‘Not showing depending of which user’ is closed to new replies.