{"id":3073,"date":"2007-03-20T09:58:49","date_gmt":"2007-03-20T09:58:49","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/reverse-order-comments\/"},"modified":"2012-07-16T18:47:44","modified_gmt":"2012-07-16T18:47:44","slug":"reverse-order-comments","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/reverse-order-comments\/","author":243819,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.1","stable_tag":"1.1.1","tested":"3.4.2","requires":"1.5","requires_php":"","requires_plugins":"","header_name":"Reverse Order Comments","header_author":"Tim Zylinski","header_description":"","assets_banners_color":"","last_updated":"2012-07-16 18:47:44","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.kiva.org\/invitedby\/tim5156","header_plugin_uri":"http:\/\/www.zyblog.de\/wordpress-plugins\/reverse-order-comments\/","header_author_uri":"http:\/\/www.zyblog.de\/","rating":5,"author_block_rating":0,"active_installs":100,"downloads":18900,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.1":"<p>Now compatible with WP 3.3.2<\/p>","1.0.3":"<p>Maintenance release; upgrade is not required<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.0.2","1.0.3","1.1","1.1.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[107,54038,105,1896,7687],"plugin_category":[44],"plugin_contributors":[83108],"plugin_business_model":[],"class_list":["post-3073","plugin","type-plugin","status-publish","hentry","plugin_tags-comments","plugin_tags-gstebuch","plugin_tags-guestbook","plugin_tags-order","plugin_tags-reverse","plugin_category-discussion-and-community","plugin_contributors-timz","plugin_committers-timz"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/reverse-order-comments.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>A really simple WordPress Plugin. It provides the function <code>ro_comments_template()<\/code>, which allows the comments to be displayed in reverse order (thus the newest comments first, oldest last).<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install &amp; activate the plugin.<\/li>\n<li>Edit your theme files and implement the new function as described in the FAQ section.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I implement the plugin function in my templates?<\/dt>\n<dd><p>Open the template file which should show the comments in a reverse order in your favorite editor.\nLocate the line<\/p>\n\n<pre><code>&lt;?php comments_template(); ?&gt;\n<\/code><\/pre>\n\n<p>and replace it with<\/p>\n\n<pre><code>&lt;?php if(function_exists('ro_comments_template')) ro_comments_template(); else comments_template(); ?&gt;\n<\/code><\/pre>\n\n<p><strong>Note:<\/strong><\/p>\n\n<p>The arguments of the function can be different in your template, for example if it is<\/p>\n\n<pre><code>&lt;?php comments_template('', true); ?&gt;\n<\/code><\/pre>\n\n<p>change the plugin function accordingly to \n    <\/p><\/dd>\n<dt>What are the files in theme-examples directory?<\/dt>\n<dd><p>theme-examples\/\n        default                      (English default theme)\n          comments-topinput.php      comments.php adapted for a guestbook\n          tpl_guestbook.php          template for a guestbook<\/p>\n\n<pre><code>    default_de                   (German default theme)\n      comments-topinput.php      comments.php adapted for a guestbook\n      tpl_gaestebuch.php         template for a guestbook\n<\/code><\/pre><\/dd>\n<dt>Will it work with paged comments?<\/dt>\n<dd><p>Yes, but if you use comment navigations with labels like \"older\" and \"newer\", then it might be puzzling for the user, as the comment order is opposite to the navigation.\nIn this case I suggest not to use the plugin in combination with comment-pagination or you should change your navigation labels.<\/p><\/dd>\n<dt>Building a guestbook for the Kubrik theme<\/dt>\n<dd><p>Precondition: comments-topinput.php and tpl_gaestebuch.php are in in your template directory.<\/p>\n\n<ol>\n<li>Create a new page. Title e.g. \"guestbook\"<\/li>\n<li>Allow comments for this page<\/li>\n<li>Choose the template \"Guestbook\" for this page.<\/li>\n<\/ol>\n\n<p>Done!<\/p>\n\n<p>If you want the comment input fields \"blogstyle\" at the bottom of the page, just change inside\ntpl_gaestebuch.php the line<\/p>\n\n<pre><code>&lt;?php if(function_exists('ro_comments_template')) ro_comments_template(\"\/comments-topinput.php\"); else comments_template(); ?&gt;\n<\/code><\/pre>\n\n<p>to<\/p>\n\n<pre><code>&lt;?php if(function_exists('ro_comments_template')) ro_comments_template(); else comments_template(); ?&gt;\n<\/code><\/pre><\/dd>\n<dt>Building a guestbook for other themes<\/dt>\n<dd><p>If you don't use the Kubrik\/Default theme, it is still very easy to build your own template.\nA good template to start with is \"page.php\" and \"single.php\". Copy \"page.php\" and rename it.\nThe line <code>&lt;?php comments_template(); ?&gt;<\/code> is important. Change it as described above.\nAdd a header to your new page, to tell Wordpress it is a template.<\/p>\n\n<p>e.g.<\/p>\n\n<pre><code>&lt;?php\n\/*\nTemplate Name: Guestbook\n*\/\n?&gt;\n<\/code><\/pre>\n\n<p><a href=\"http:\/\/codex.wordpress.org\/Pages#Creating_your_own_Page_Templates\">Page Template Documentation<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>16.07.12 Tested with WP 3.4.1<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>08.06.12 Updated to work with WP 3.3.2; Now using filers, making it compatible, faster and future proof<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>07.06.12 maintenance release; change of plugin owner<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>18.05.08 release on the WordPress plugin directory; renamed the plugin to reverse-order-comments; changed the directory structure to enable the WordPress plugin autoupdate<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>13.09.06 small bugfix inside comments-topinput.php templates<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>11.11.05 Initial Release<\/li>\n<\/ul>","raw_excerpt":"Allows to display the comments in reverse order. Latest comment first, oldest last.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/3073","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=3073"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/timz"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=3073"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=3073"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=3073"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=3073"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=3073"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=3073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}