Misterpayne112
Member
Posted 3 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?
You should add the comment code in your index.php page outside the loop.
Misterpayne112
Member
Posted 3 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?
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.