• ProjectLifestyle

    (@projectlifestyle)


    Hello Everyone I am using the buddypress plugin and a theme called Rambles. Basically all I am trying to do is allow users to comment from the home page and let them see recently posted comments upon coming to the site. I am not “Great” at coding but have a little experience I have attached my code from index.php file for review, Any help is greatly appreciated!

    <?php
    /**
     * The main template file.
     *
     * @package Frontline
     * @since RadiumFramework 1.0.0
     */
    
    get_header(); 
    
    $options = get_option('radium_theme');
    
    ?>
    
    <div id="main" class="<?php echo $radium_content_class; ?> clearfix" role="main">
    
    	<div id="post-box">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); 
    
    				$format = get_post_format();
    				if( false === $format ) { $format = 'standard'; }
    				if( $format == 'aside' || $format == 'gallery' || $format == 'image' || $format == 'link' || $format == 'quote') { }
    
    			    get_template_part( 'lib/content/content', $format ); 
    
    			endwhile; else : 
    
    				get_template_part( 'lib/content/content', 'not-found' ); 
    
    		 	endif; 
    
    		echo radium_theme_pagination(); ?>
    
    	</div> <!-- END #post-box -->
    
    </div> <!-- END #main -->
    
    <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Adding comment box and displaying comments on Homepage’ is closed to new replies.