Ok this might seem trivial to the smarter WordPress folks out there, but I’m dumb… dumb like a sack of rocks and didn’t just figure this out until now.
If you’ve been using WordPress for years and always wondered why the ‘Add a Comments’ section only show up on the front page of the blog and nowhere else BUT the admin interface and the rest of WordPress seem to happily support comments on every page then you are in luck.
As it turns out most (if not all?) themes I’ve used for WordPress do not include the comment-enabling snippet of code on the default Page template that is used to render sub-pages of the main site (for example, on this site, like the Contact, About, Reviews, etc. sections).
The trick is to edit the Page template of whatever theme you are using and add the following snippet of code right below the existing post-div (ends with comment: <!–/post–>)
So find that section and right after it, add this new comments div:
<div id="comments" class="box2"><?php comments_template(); ?></div>
You are now set, every single page on your site will include the Comments section template, and since WordPress already supports pages having comments, there is nothing more to do… it will just suddenly work.
You can see this in action (as an example) over on the kallasoft SmugMug Java API Examples page.
Hope that helps some of you WordPress’ers out there.























August 11th, 2008 at 2:20 pm
Thanks, I just didn´t know how to do it. Now I do. (Big relieve, because other advices could´t help me further). Once again, thanks for sharing. Regards, Alexander
August 11th, 2008 at 4:30 pm
No problem Alexander, glad it helped.