• Hi
    I have a question about a sub page?
    I have add a subpage and i wount to have a comment in that page. I have tick allow Comments in the admin but it not shows in the page. Can any one give me a tip so i can have a commet in the subpage.
    Look first on this side Download
    https://fotadigitalt.se/?page_id=9
    the you have .sk?rpa bilden thats the subpage and it liks to this side. Ther i wont to have the commnet.

    https://fotadigitalt.se/?page_id=16

Viewing 4 replies - 1 through 4 (of 4 total)
  • It’s likely the theme you are using does not include:

    <?php comments_template(); ?>

    in the Page template (i.e. page.php) for the theme. This include tag is needed (obviously) to display both comments and the comment form on a post or Page.

    I am having the same problem, should I copy the code above into page.php? Where abouts should it go?

    This is in index.php, but my page still won’t allow comments:

    <?php the_author() ?> | <a href="<?php the_permalink() ?>#comments"><?php comments_number('0 comments', '1 comment', '% comments'); ?>

    Thank you.

    Thread Starter Apel

    (@apel)

    It works ok when i past the code <?php comments_template(); ?> in the page.php
    But i want the same that is in the index.php
    <?php comments_popup_link(‘Leave a Comment’, ‘1 Comment’, ‘% Comments’); ?>
    But it isent work. Tell me whats the problem. And what shell i do to fix that.
    /Apel

    There is no problem: just the different template files ( like index, page, etc.) have different behaviour. Since a Page is displaying only ONE entry – there is no need for the “comment link”.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘commets in the subpages!’ is closed to new replies.