As part of a recent upgrade on this site I installed the latest version of the excellent K2 theme, taken from the nightly builds. Following the upgrade I noticed that although comments were still intact on posts, they were missing from pages. All the old comments still existed in the admin backend, but they were not shown on any pages, and neither was the comment form. I discovered that since revision 747 of K2 it is necessary to have a custom field called ‘comments’ associated with a page in order for any comments or the comments form to be displayed. This leads to a problem in itself; if you try to add an empty custom field to a page then a rather unhelpful error message is displayed and the operation fails. The solution is to give the ‘comments’ field a dummy value, anything will do as it is never displayed. Save the page and voilà: any existing comments and the comments form will resurrected below the content.
The moral of the story? If you want the latest and greatest version, at least spend five minutes reading the changelog!
0 Responses to “Missing Comments With K2”