{"id":167,"date":"2008-04-28T22:31:11","date_gmt":"2008-04-29T03:31:11","guid":{"rendered":"http:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/167"},"modified":"2008-04-28T20:34:12","modified_gmt":"2008-04-29T01:34:12","slug":"adding-page-level-comments-to-the-lightbreaker-wordpress-theme","status":"publish","type":"post","link":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/167","title":{"rendered":"How to Add Page Level Comments to a WordPress Theme"},"content":{"rendered":"

If you need to add comments to your Pages when using WordPress, just add the following line of code to your Page Template:<\/p>\n

<?php $postcount++; ?> <\/p>\n

<?php if ((‘open’ == $post-> comment_status)) { comments_template(); } ?> <\/font> <\/p>\n

<?php endwhile; ?> <\/p>\n

I’m using the “LightBreaker” theme so I only need to edit one file. <\/p>\n

\"image\"<\/a> <\/p>\n

Then on the page editor, I can control the comments by changing the advanced setting for “Allow Comments”:<\/p>\n

\"image\"<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

If you need to add comments to your Pages when using WordPress, just add the following line of code to your Page Template: <?php $postcount++; ?> <?php if ((‘open’ == $post-> comment_status)) { comments_template(); } ?> <?php endwhile; ?> I’m using the “LightBreaker” theme so I only need to edit one file. Then on the […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[4,8],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pd5QIe-2H","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":1749,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/1749","url_meta":{"origin":167,"position":0},"title":"Nest Update #12: Software at 3.0 with New Features","date":"October 3, 2012","format":false,"excerpt":"As the blogosphere exploded yesterday with news of a second generation Nest thermostat and a new major version of the software (for the thermostats and the controllers such as the web site and various SmartPhones), I wondered what impact the new software and hardware would have on average users, like\u2026","rel":"","context":"In "Recommendations"","img":{"alt_text":"IMG_0630","src":"https:\/\/i0.wp.com\/www.wiredprairie.us\/blog\/wp-content\/uploads\/2012\/10\/IMG_0630.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1551,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/1551","url_meta":{"origin":167,"position":1},"title":"Blank Dashboard and Administration Screens on WordPress","date":"February 26, 2012","format":false,"excerpt":"Apparently, there are a number of potential causes of a blank or empty screen when trying to access the Dashboard or administration screens of a self installed version of WordPress. Before doing anything to your installation, I\u2019d strongly suggest making a complete backup of your Database and installation folders. If\u2026","rel":"","context":"In "Software"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2241,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/2241","url_meta":{"origin":167,"position":2},"title":"TS2688 with TypeScript, React Native, and MobX","date":"March 1, 2018","format":false,"excerpt":"To\u00a0preserve my sanity if I should run into this again....\u00a0 I created a React Native project, ejected it, and then converted it to use TypeScript. Things were going well until I started to use MobX. The following error occurred: node_modules\/mobx\/lib\/utils\/utils.d.ts(1,23): error TS2688: Cannot find type definition file for 'node'. Something\u2026","rel":"","context":"In "Coding"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":331,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/331","url_meta":{"origin":167,"position":3},"title":"Velocity — a rockin’ distributed in memory cache for ASP.NET","date":"June 3, 2008","format":false,"excerpt":"Velocity, the code-name for a new in-memory distributed caching system for ASP.NET was released as a Community Tech Preview today. What is it? It's described in the documentation: Microsoft project code named \"Velocity\" provides a highly scalable in-memory application cache for all kinds of data. By using cache, your application\u2026","rel":"","context":"In "Coding"","img":{"alt_text":"image","src":"https:\/\/i0.wp.com\/www.wiredprairie.us\/blog\/wp-content\/uploads\/2008\/06\/image-thumb.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1109,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/1109","url_meta":{"origin":167,"position":4},"title":"Visual Studio 2010 Add-in Settings Swapper","date":"July 4, 2010","format":false,"excerpt":"Challenged by a coworker recently, I created a simple add-in for Visual Studio 2010 to modify the settings for code formatting based on the file extension. The usage scenario is simple: allow for different language formatting rules based on the file file type (or extension). In this case, he wanted\u2026","rel":"","context":"In "Coding"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1705,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/1705","url_meta":{"origin":167,"position":5},"title":"WinRT\/Xaml\/AKA Metro DataTemplate selection based on Data Types","date":"August 20, 2012","format":false,"excerpt":"You may have noticed that WinRT does not have automatic resolution of a DataTemplate based on the data type of object added to an ItemsControl. While unfortunate as this behavior is quite handy, it\u2019s not too difficult to replicate the functionality using a DataTemplateSelector. WPF for example, could do something\u2026","rel":"","context":"In "Coding"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/posts\/167"}],"collection":[{"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/comments?post=167"}],"version-history":[{"count":0,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/posts\/167\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wiredprairie.us\/blog\/index.php\/wpjson\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}