Hey,
is it possible to add an Commentfield under the content on an normal Page (none article).
Add Comment-Field on Pages
6 posts from 3 voices-
Posted 1 year ago #
-
Hey,
open up page.php and replace:
echo "</div><!--end inner_box-->";with:
//wordpress function that loads the comments template "comments.php" comments_template( '/includes/comments.php'); echo "</div><!--end inner_box-->";Posted 1 year ago # -
Hmmm,
but what happend if I want the commentfield only on 2 of 5 normal pages?Posted 1 year ago # -
Then you'll have to create a new page template and assign that template to your page. Simply copy the template file normally used by your pages, then rename it and put the commenting in. Now, you'll be able to use a template with & a template without comments. *Note sometimes the comments mess up on pages that weren't intended to have comments.
Posted 1 year ago # -
Alright, works fine.
But one last question.How can I add in that new page-template with the comments filed the seperator tag above? (<div class="hr hr_post_seperator"></div>)
//wordpress function that loads the comments template "comments.php"
echo "<div class="hr hr_post_seperator">";
comments_template( '/includes/comments.php');
echo "</div><!--end inner_box-->";is not working.....cause I´m not the php guy ;-)
Posted 1 year ago # -
You're using double quotes for your echo's and for your classes. Try
<div class=\"hr hr_post_seperator\">
See the backslashes? These make sure the quotes are read as you intend them to be read.Posted 1 year ago #
Reply
You must log in to post.














