UK Sales: 0800 035 6364 | | We'll Call You

Wordpress - how to add comments on Pages

Most Wordpress themes do not allow you to add commments to your 'pages' (as opposed to posts). Here's how to allow users to comment on your pages.

You need to edit the page.php file for your theme (under Appearance) and insert the following:

 <?php comments_template(); ?> 

In the default theme it slips in best just before the close of the

<div id="content" class="narrowcolumn"> 

tag on line 17 (I'm looking at theme version 1.6). However you can just use trial and error on your chosen theme.

That's all there is to it. You might also want to edit the comments.php file of same theme and add <?php if (!is_page()) { ?/> before the line that reads <!-- If comments are closed. --> and <?php } ?> after it. (It's around line 57/58, again in default theme version 1.6.) This'll stop the "Comments are closed" message from appearing on pages which to me doesn't quite fit given the context.

With thanks to 'dominicwa' from the forum
2020Media is a leading provider of small business Wi-Fi hotspots. If you want to offer free Wi-Fi to your customers or users, our service could be exactly what you are looking for. Our Hotspots are managed in the cloud, ultra-reliable and give you loads of information about behaviour patterns of your users. Read More   Read more...
2020Media introduces Moodle Hosting - UK servers and UK Moodle experts setup your site ready to use. Read more...
Special Offer for Longer Registration Periods Register or renew a .com, .net or .org domain name for 5 years we'll include 1 year free*. Read more...
2020Media is now offering zero-click installation of the popular TYPO3 content management system. Read more...

Our blog is regularly updated with news, tips and industry opinion.


  • AggieWestons
  • baker-and-mckenzie
  • arts-council-england
  • Big Finish
  • barratt-developments-logo
  • City-of-Lincoln-council-logo
  • brora-logo
  • DenisMacShane
  • Construction-Industry-Council
  • colchester