WordPress.org

Ready to get started?Download WordPress

Forums

Comments on Custom Page (1 post)

  1. CrimsonMoon
    Member
    Posted 1 year ago #

    Hi!

    I've created a custom page template that pulls posts from a specific category and paginates them. The reply box and comments work fine on the individual post pages, but don't seem to show up on the custom page. Comments are enabled for the actual page. The code calls for the comments template. I've searched around but can't seem to find a previous case with the same issue. Any ideas?

    Here is my custom page code:

    <?php
    /**
     * Template Name:  Rectangular Dancing Tibbels
     * URL:  justinnatalie.com
     * By:  Justin Tibbels
     */
    
    ?>
    
    <?php get_header(); ?>
    
                <div id="primary">
    
    			<div id="content" role="main">
    
                <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args = array(
    	'category_name' => 'dancing-tibbels',
      'posts_per_page' => 1,
      'paged' => $paged
    );
    
    query_posts($args);
    ?>
    
    				<?php while ( have_posts() ) : the_post(); ?>
    
                    	<nav id="nav-blog">
    						<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
    						<span class="nav-previous"><?php previous_post_link('%link', 'Previous', TRUE); ?></span>
    						<span class="nav-next"><?php next_post_link('%link', 'Next', TRUE); ?></span>
    					</nav><!-- #nav-single -->
    
    					<?php get_template_part( 'content', 'page' ); ?>
    
    					<?php comments_template( '', true ); ?>
    
    				<?php endwhile; // end of the loop. ?>
    
    			</div><!-- #content -->
    
    		</div><!-- #primary -->
    
            <?php wp_reset_query(); ?>
    
            <?php get_sidebar(); ?>
    
            </div><!-- #main -->
    
            <?php get_footer(); ?>
    
            </body>
    </html>

    Here is the custom page:
    (Please forgive the design, it's very much under construction...)

    http://www.justinnatalie.com/dancing-tibbels

    Thanks for your time and help!

Topic Closed

This topic has been closed to new replies.

About this Topic