• I don’t understand why comments are not allowed in the gallery format for posts, but work fine in the standard format. If I want to set a featured image, then it is impossible for people to comment on my post. This is something that I would love to see resolved. Please help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • mktech

    (@mktechstudios)

    Open content-gallery.php and after this line:

    <?php the_content(); ?>

    add:

    <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'ascetica' ), 'after' => '</p>' ) ); ?>
    
    <?php comments_template( '/comments.php', true ); // Loads the comments.php template. ?>

    Using this method I was able to include comments for all gallery posts on this site: https://roykinzer.com.

    Thread Starter bloggerblogblog

    (@bloggerblogblog)

    Thanks a lot! I actually just got the child theme up and running and was wondering if you would know how to implement this same code in the child theme. I’m a noob at all the template file stuff, so any help would be great.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No comments in gallery format?’ is closed to new replies.