WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to allow comments on PAGES? (12 posts)

  1. Ladii Mystic
    Member
    Posted 5 years ago #

    hi,

    i'm trying to get this page:

    http://www.runescapeaddicts.com/clandatabase/testclan1/

    to allow comments.

    how do i do that?

  2. Shane G
    Member
    Posted 5 years ago #

    Hi,

    Whenever you are adding new page on your blog at the time there is an option of "allow comments" in discussion section..which must be selected to allow comments..

    Thanks,

    Shane G.

  3. Ladii Mystic
    Member
    Posted 5 years ago #

    i did, but it still shows no box =/ for the comment

  4. Justin Tadlock
    Member
    Posted 5 years ago #

    You need to have this after The Loop in your theme's page.php file:

    <?php comments_template(); ?>
  5. Ladii Mystic
    Member
    Posted 5 years ago #

    i'm sorry, i couldn't find where to put that...

    this is my blog's template:

    /*
    Theme Name: Runescape
    Theme URI:
    Author: E-Scapes-India
    Author URI:
    Description: Runescape
    */

    [Moderated: Too much code. Please consider placing the code in a text file on your site with a link here -or- use a pastebin service such as http://wordpress.pastebin.com. Thanks!]

  6. Justin Tadlock
    Member
    Posted 5 years ago #

    What was the name of the file you just opened and pasted in your last post? Is it style.css?

    Now, reread what I wrote:

    You need to have this after The Loop in your theme's page.php file:

  7. John Hoff
    Member
    Posted 5 years ago #

    That's right. Make sure you have that in your page.php file. You might need to add a div tag. So your code to paste in might look like this:

    <div id="comments">
    <?php comments_template(); ?>
    </div>

    You probably have that code in your single post file (single.php). You can do a copy and search for the code I did above in that file and see how it's displayed in that file. Then simply copy and paste it into your page.php near the bottom.

  8. Ladii Mystic
    Member
    Posted 5 years ago #

    oh i got it now...

    Thank you guys so much!!!

  9. alajoann
    Member
    Posted 5 years ago #

    Thanks. Easy. No wonder there's no plugin to do this.

  10. CAVUCO
    Member
    Posted 5 years ago #

    I must be stupid.

    I am using the Atahualpa theme, but there are also the classic and default WP themes. Only the WP Default has a page.php.

    I tried placing the above code at the end of the file.. nothing, and then before the first </div>, nothing.

    I have the allow comments checked.

    Can you folks please help. I'm not sure what ("A$fter the loop") means.
    Should there be a page.php in the Atahualpa theme folder?

  11. smuffle89
    Member
    Posted 5 years ago #

    if i were you, i would create one. my page template looks like this:

    <?php
    /**
     * @package WordPress
     * @subpackage Default_Theme
     */
    
    get_header(); ?>
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <div id="content" style="position: absolute;">
    <h1><?php the_title(); ?></h1>
    <div class="entry">
    <?php the_content('Read the rest of this page &raquo;'); ?>
    
    <?php comments_template(); ?>
    
    <?php wp_link_pages(array('before' => '<strong>Pages:</strong> ', 'after' => '', 'next_or_number' => 'number')); ?>
    </div>
    <?php endwhile; endif; ?>
    <?php get_footer(); ?>
    </div>

    with the comments template included :)

  12. vj Rhett Bice
    Member
    Posted 4 years ago #

    I am having the same problem I have tried pasting the code given above in my page template and nothing is happening.
    Can someone please break this down for css dummies. Like for instance what is the css loop? Is that the entire css code or is it a particur block of code?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags