• Resolved bdanzer29

    (@bdanzer29)


    As the title states the sites comments won’t lead even after enabling them on the wp-admin area. I thought it might be a php problem but I can’t see any glaring issues. Here is the code below if you see anything wrong please let me know!

    
    <?php
    /**
     * The template for displaying all pages.
     *
     * @package Betheme
     * @author Muffin group
     * @link https://muffingroup.com
     */
    
    get_header();
    ?>
    	
    <!-- #Content -->
    <div id="Content">
    	<div class="content_wrapper clearfix">
    
    		<!-- .sections_group -->
    		<div class="sections_group">
    		
    			<div class="entry-content" itemprop="mainContentOfPage">
    			
    				<?php 
    					while ( have_posts() ){
    						the_post();							// Post Loop
    						mfn_builder_print( get_the_ID() );	// Content Builder & WordPress Editor Content
    					}
    				?>
    				
    				<div class="section section-page-footer">
    					<div class="section_wrapper clearfix">
    					
    						<div class="column one page-pager">
    							<?php
    								// List of pages
    								wp_link_pages(array(
    									'before'			=> '<div class="pager-single">',
    									'after'				=> '</div>',
    									'link_before'		=> '<span>',
    									'link_after'		=> '</span>',
    									'next_or_number'	=> 'number'
    								));
    							?>
    						</div>
    						
    					</div>
    				</div>
    				
    			</div>
    			
    			<?php if( mfn_opts_get('page-comments') ): ?>
    				<div class="section section-page-comments">
    					<div class="section_wrapper clearfix">
    					
    						<div class="column one comments">
    							<?php comments_template( '', true ); ?>
    						</div>
    						
    					</div>
    				</div>
    			<?php endif; ?>
    	
    		</div>
    		
    		<!-- .four-columns - sidebar -->
    		<?php get_sidebar(); ?>
    
    	</div>
    </div>
    
    <?php get_footer();
    
    // Omit Closing PHP Tags
    
Viewing 1 replies (of 1 total)
  • Thread Starter bdanzer29

    (@bdanzer29)

    I made a few rookie mistakes…one I was looking at the wrong template it was not page.php it was on which is obvious since on the hierarchy for WordPress and post can’t be page.php. But even though I looked at all the wp-admin settings for enabling comments make sure if you have the same issue as me that you go to the “Apperance settings” to make sure that the themes options aren’t configured to turn off comments. In my case, it was the theme turning off the comments through their dashboard even though it was enabled anywhere else. Just wanted to post this just in case someone runs into a similar issue ??

Viewing 1 replies (of 1 total)
  • The topic ‘Working on a site and for some reason the comments won’t show’ is closed to new replies.