Comments
-
Hey =)
I’m working on my blog from a blank template, so far it’s going good:
https://letshoe.com/postsdesign.jpgI’m trying to add the comments section below all the posts
I couldn’t find the right code, what is the best solution?That’s the code:
<?php get_header(); ?> <!-- Posts Begin Here --> <?php while (have_posts()) : the_post();?> <div class="quotesgrid"> <div class="date"><?php the_date(M . " " . d); ?></div> <div class="quotes"> <h2><?php the_title(); ?></h2> <?php the_content(); ?> <?php echo wp_insert_comment(); ?> </div><!-- quotes --> </div><!-- quotesgrid --> <?php endwhile; ?> <!-- Paginate Links --> <div id="paginate"> <?php global $wp_query; $big = 999999999; // need an unlikely integer echo paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages ) ); ?> </div> <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Comments’ is closed to new replies.