WordPress.org

Ready to get started?Download WordPress

Forums

Adding comment box and displaying comments on Homepage (2 posts)

  1. ProjectLifestyle
    Member
    Posted 1 year ago #

    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(); ?>
  2. ProjectLifestyle
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic