{"id":13160,"date":"2011-05-07T07:46:49","date_gmt":"2011-05-07T07:46:49","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/simple-relative-date\/"},"modified":"2011-05-07T07:46:49","modified_gmt":"2011-05-07T07:46:49","slug":"simple-relative-date","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/simple-relative-date\/","author":7901157,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"3.0.5","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"Simple Relative Date","header_author":"Dani Valentin <hello@danivalentin.net>","header_description":"","assets_banners_color":"","last_updated":"2011-05-07 07:46:49","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.danivalentin.net","header_plugin_uri":"https:\/\/github.com\/danivalentin\/Simple-Date-Plugin","header_author_uri":"http:\/\/danivalentin.net","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1865,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":{"":"<p>`<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1358,1429,1356],"plugin_category":[],"plugin_contributors":[97530],"plugin_business_model":[],"class_list":["post-13160","plugin","type-plugin","status-publish","hentry","plugin_tags-date","plugin_tags-relative","plugin_tags-time","plugin_contributors-danivalentin","plugin_committers-danivalentin"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/simple-relative-date.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This was based on <a href=\"http:\/\/lesterchan.net\/wordpress\/readme\/wp-relativedate.html\" title=\"Relative Date\">Lester Chan's Relative Date plugin<\/a>.\nIt tries to simplify things a bit. This plugin can:<\/p>\n\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\n<p>Note that if your theme is writing the date in a different form, it won't work. You have to\nreplace its function call to one of the above (in the TwentyTen theme for example, replace twentyten_posted_on()\nby the_date().<\/p>\n\n<p>Also important to say that, comment replacement won't work if you are using the default wp comment renderer because\nit calls get_comment_time() as well. You have to do a customized callback function to use with\nwp_list_comments( array( 'callback' =&gt; 'your_customized_function_here' ) ). (ok, maybe things were not\nsimplified that much :\/)<\/p>\n\n<p>There is a options page (under settings in the Admin) where you can choose which dates you\nwant to replace (posts\/comments). Posts date are by default checked.<\/p>\n\n<p>Portuguese translation included.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>wp-simplerelativedate.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>If necessary, change the plugin's options in the options page under settings menu.<\/li>\n<\/ol>","raw_excerpt":"A simple way to turn your post\/comment date in its relative versions.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/13160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=13160"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/danivalentin"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=13160"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=13160"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=13160"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=13160"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=13160"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=13160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}