WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How do I add comments to a page that has posts? (4 posts)

  1. Misterpayne112
    Member
    Posted 4 years ago #

    i am trying to add comments to a page that has posts on it. i want the comments to apply to the page and not the post. if i put the comments at the top of the page, it will apply to the page, but if i try to put it at the bottom, the comments apply to the post. the post is just a preview but the comments still go to that post instead of the page. how can i fix this?

  2. fldtrace
    Member
    Posted 4 years ago #

    You should add the comment code in your index.php page outside the loop.

  3. Misterpayne112
    Member
    Posted 4 years ago #

    why the index.php and why outside the loop? i created a few other pages, and i want to add a comment section for each page. how do i put something outside of the loop?

  4. fldtrace
    Member
    Posted 4 years ago #

    I didn't understood your first question.
    In this case you need to add it in single.php page and if is on this page can stay inside the loop.

Topic Closed

This topic has been closed to new replies.

About this Topic