• When I write Independent pages (About, Guestbook, etc.) I check the comments section, but I don’t see any link and comment box when I publish the pages. I’m using WP 2.0 – Is there anyway I can fix this problem?

Viewing 6 replies - 1 through 6 (of 6 total)
  • That’s not a WP issue. It depends on the theme you are using. I don’t see any reason to have comments on my “About” Page, and other designers think the same, so usually the call for copmments is not included in the page.php template.

    You can create another Page Template that has comments and use that for Pages where you want/need comments.

    reading: Pages

    Thread Starter zapata

    (@zapata)

    Moshu, thanks! I’ll try finding how to modify the Page template. (I’m using Regulus theme). The comments in Page is needed for a GuestBook Comments page.

    Then make one additional Page Template (it is decsribed the how-to on the Codex page I linked above) with comments and use it only for that Guestbook. On the rest of the Pages comments look odd…

    jollynut

    (@jollynut)

    My question is loosely related to this topic, so I thought I’d bring it up here. The key words are ‘page-specific comments templates’.

    Let me explain.

    I can get comments working on my pages. No problem there. The reason I want to have comments on some of my pages, is because I want to get people’s opinion on the content of that certain page. In this case, the pages describe the route I am going to be travelling through a certain country (ref: https://www.14degrees.org/en/?page_id=35).

    The question is, how do I get my custom comments template ‘comment_country.php’ to display correctly in the context of

    <?php comments_template(); // Get wp-comments.php template ?>

    I have tried:

    <?php comment_country_template(); // Get wp-comment_country.php template ?>

    but this gives me an error.

    When I do this,

    <?php include(“comment_country.php”) ?>

    my custom country comment template displays nicely, but does not show any posts…

    May I call upon the great wisdom of someone who has some idea, to suggest a way that I can get my page-specific comments template to work?

    Let me know if you need more info.

    Kafkaesqui

    (@kafkaesqui)

    Assuming ‘comment_country.php’ is just a modification of the default comments.php template, try:

    <?php comments_template('/comment_country.php'); ?>

    in your Page template.

    jollynut

    (@jollynut)

    Kafkaesqui. Has anyone told you you’re a genius lately?

    You’re a genius.

    Your fix works like a charm.

    Thank you for your help. Really appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Pages don’t have Comments section’ is closed to new replies.