{"id":158681,"date":"2011-05-07T08:00:00","date_gmt":"2011-05-07T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/simple-relative-date\/"},"modified":"2011-05-07T15:46:00","modified_gmt":"2011-05-07T15:46:00","slug":"simple-relative-date","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/simple-relative-date\/","title":{"rendered":"Simple Relative Date"},"content":{"rendered":"<p>This was based on <a href=\"http:\/\/lesterchan.net\/wordpress\/readme\/wp-relativedate.html\" title=\"Relative Date\" rel=\"nofollow ugc\">Lester Chan\u2019s Relative Date plugin<\/a>.<br \/>\nIt tries to simplify things a bit. This plugin can:<\/p>\n<ul>\n<li>Replace the_date() in the post<\/li>\n<li>Replace get_comment_date() or comment_date() in the comments<\/li>\n<\/ul>\n<p>Note that if your theme is writing the date in a different form, it won\u2019t work. You have to<br \/>\nreplace its function call to one of the above (in the TwentyTen theme for example, replace twentyten_posted_on()<br \/>\nby the_date().<\/p>\n<p>Also important to say that, comment replacement won\u2019t work if you are using the default wp comment renderer because<br \/>\nit calls get_comment_time() as well. You have to do a customized callback function to use with<br \/>\nwp_list_comments( array( \u2018callback\u2019 => \u2018your_customized_function_here\u2019 ) ). (ok, maybe things were not<br \/>\nsimplified that much :\/)<\/p>\n<p>There is a options page (under settings in the Admin) where you can choose which dates you<br \/>\nwant to replace (posts\/comments). Posts date are by default checked.<\/p>\n<p>Portuguese translation included.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A simple way to turn your post\/comment date in its relative versions.<\/p>\n","protected":false},"author":65,"featured_media":228704,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Simple Relative Date - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"A simple way to turn your post\/comment date in its relative versions."},"footnotes":""},"categories":[1],"tags":[593,981,594],"class_list":["post-158681","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-date","tag-relative","tag-time"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/158681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=158681"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/158681\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/228704"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=158681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=158681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=158681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}