Comments not showing.

  • Question
  • Updated 3 years ago
When users on my blog post comments they work fine if the comments are done directly under the post it self. But if I have added a gallery of pictures in the post and a user clicks on one of the pictures and want to add a comment under that specific picture it wont show up on the page. I will see it under my admin panel so I can approve it. But it will still not show up after it's been approved. What do I have to do to work around this?
Photo of martenmedinM

martenmedin

  • 1 Post
  • 0 Reply Likes
  • confused

Posted 4 years ago

  • 2
Photo of Allan Cole

Allan Cole, Owner

  • 2047 Posts
  • 112 Reply Likes
Hi Martenmedin,
This seems to be a bug. I’ll have a fix shortly.
Photo of lacombe.jeanfrancoisL

lacombe.jeanfrancois

  • 2 Posts
  • 0 Reply Likes
I experiencing the same problem...
I got 39 comments yesterday but none of em' are showing with the pictures...
Allen, do you know when this will be fixed?
thanks,

Jean-f
Photo of Allan Cole

Allan Cole, Owner

  • 2047 Posts
  • 112 Reply Likes
Very soon. But I don’t have a specific date yet.

In the mean time, find lin 84 of attachment.php and change this:

<?php
// Only show the Comments Form if the parent post has comments open
if ( comments_open($post->post_parent) ) {
comments_template();
} ?>


To this:

<?php comments_template( '', true ); ?>
Photo of lacombe.jeanfrancoisL

lacombe.jeanfrancois

  • 2 Posts
  • 0 Reply Likes
Thanks for the patch Allen, works great!
Photo of Allan Cole

Allan Cole, Owner

  • 2047 Posts
  • 112 Reply Likes
No problem ;-)
Photo of Tara Nicole

Tara Nicole

  • 1 Post
  • 0 Reply Likes
i'm glad I found this!
Photo of jacglenphoto

jacglenphoto

  • 13 Posts
  • 0 Reply Likes
This solved my problems as well - many thanks.
Had exactly the same problems - comments were not shown and this solved it!

Have brilliant days ....