• Resolved Kriis

    (@kriis)


    I just installed the latest Version 7.0.7.

    All of the TML generated pages are showing all of the comments made on other pages of the site. This is not happening on any other post or pages on the site, the comments only show up on the posts to which they were added and the TML generated pages.

    I would like to disable this. Please let me know how.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    What does your theme’s page.php file look like?

    Thread Starter Kriis

    (@kriis)

    <?php get_header(); ?>
    <div class="mh-wrapper clearfix">
    	<div class="mh-main clearfix">
        	<div id="main-content" class="mh-content" role="main" itemprop="mainContentOfPage"><?php
        		while (have_posts()) : the_post();
    				mh_before_page_content();
    				get_template_part('content', 'page');
    				mh_after_page_content();
    				comments_template();
    			endwhile; ?>
            </div>
    		<?php get_sidebar(); ?>
        </div>
        <?php mh_magazine_second_sidebar(); ?>
    </div>
    <?php get_footer(); ?>

    But again, this doesn’t happen on other pages I have created.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Your call to comments_template() should be conditional. Try this:

    
    if ( comments_open() || get_comments_number() ) :
    	comments_template();
    endif;
    
    Thread Starter Kriis

    (@kriis)

    Thanks that did the trick.

    • This reply was modified 5 years, 9 months ago by Kriis.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Comments On TML pages’ is closed to new replies.