Support » Themes and Templates » Read and Post all comments one page

Read and Post all comments one page

  • I’m a bit of a newbie so I am guessing that I am missing something obvious here. We are using WP as a CMS essentially and need to have one page for comments to be viewed and posted. This is the only place that the comments will show up. Link to site http://shoplocaliowa.com
    The “Share your stories”page is the comments page. If there is a better way to achieve this I am open to suggestions

Viewing 1 replies (of 1 total)
  • Hi, for the people interested in that, I just discovered the ‘how-to’ to this issue.

    You can copy and paste the code in single.php dedicated to produce the comments, in a brand new custom page, and in the case you have by default a separated comments file (comments.php), open it and copy it, or call it through PHP :

    <?php comments_template(); ?>

    You will find the code in the Deafult theme which comes with WordPress.

    The final Page you could create, if you have a comments.php file in your theme, would look like that :

    Template Name: MyCustomPage
    <?php get_header(); ?>
    	<?php if (have_posts())
    	 : while (have_posts())
    	 : the_post();
    		<?php the_title(); ?>
    		<?php the_content(); ?>
    		<?php comments_template(); ?>
    	<?php endwhile;
    <?php get_footer(); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Read and Post all comments one page’ is closed to new replies.
Skip to toolbar