{"id":1612,"date":"2006-02-08T22:29:43","date_gmt":"2006-02-08T22:29:43","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-relativedate\/"},"modified":"2023-08-09T03:00:11","modified_gmt":"2023-08-09T03:00:11","slug":"wp-relativedate","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/wp-relativedate\/","author":259,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.51","stable_tag":"trunk","tested":"6.3.8","requires":"2.8","requires_php":"","requires_plugins":null,"header_name":"WP-RelativeDate","header_author":"Lester 'GaMerZ' Chan","header_description":"","assets_banners_color":"e9eaec","last_updated":"2023-08-09 03:00:11","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/lesterchan.net\/site\/donation\/","header_plugin_uri":"http:\/\/lesterchan.net\/portfolio\/programming\/php\/","header_author_uri":"http:\/\/lesterchan.net","rating":3,"author_block_rating":0,"active_installs":100,"downloads":41845,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq","changelog"],"tags":{"1.00":{"tag":"1.00","author":"GamerZ","date":"2007-03-17 07:26:00"},"1.00beta":{"tag":"1.00beta","author":"GamerZ","date":"2007-03-17 07:26:00"},"1.10":{"tag":"1.10","author":"GamerZ","date":"2007-03-17 07:26:00"},"1.11":{"tag":"1.11","author":"GamerZ","date":"2007-05-31 18:36:47"},"1.20":{"tag":"1.20","author":"GamerZ","date":"2007-09-30 08:17:48"},"1.30":{"tag":"1.30","author":"GamerZ","date":"2008-06-10 07:42:06"},"1.31":{"tag":"1.31","author":"GamerZ","date":"2008-07-18 03:17:41"},"1.40":{"tag":"1.40","author":"GamerZ","date":"2009-02-07 13:57:30"},"1.50":{"tag":"1.50","author":"GamerZ","date":"2009-06-08 11:08:06"}},"upgrade_notice":{"":"<p>N\/A<\/p>"},"ratings":{"1":"1","2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon.svg":{"filename":"icon.svg","revision":978084,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":1206765,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":1206765,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.00","1.00beta","1.10","1.11","1.20","1.30","1.31","1.40","1.50"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1206765,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":1206765,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":1206765,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":1206765,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":1206765,"resolution":"5","location":"assets","locale":""}},"screenshots":{"1":"Post - Today","2":"Post - Yesterday","3":"Post - Days Ago","4":"Post - Weeks Ago","5":"Comment - Seconds Ago"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1365,1358,1424,1429,25839],"plugin_category":[],"plugin_contributors":[77620],"plugin_business_model":[],"class_list":["post-1612","plugin","type-plugin","status-publish","hentry","plugin_tags-ago","plugin_tags-date","plugin_tags-days","plugin_tags-relative","plugin_tags-relativedate","plugin_contributors-gamerz","plugin_committers-gamerz"],"banners":{"banner":"https:\/\/ps.w.org\/wp-relativedate\/assets\/banner-772x250.jpg?rev=1206765","banner_2x":"https:\/\/ps.w.org\/wp-relativedate\/assets\/banner-1544x500.jpg?rev=1206765","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/wp-relativedate\/assets\/icon.svg?rev=978084","icon":"https:\/\/ps.w.org\/wp-relativedate\/assets\/icon.svg?rev=978084","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-relativedate\/assets\/screenshot-1.png?rev=1206765","caption":"Post - Today"},{"src":"https:\/\/ps.w.org\/wp-relativedate\/assets\/screenshot-2.png?rev=1206765","caption":"Post - Yesterday"},{"src":"https:\/\/ps.w.org\/wp-relativedate\/assets\/screenshot-3.png?rev=1206765","caption":"Post - Days Ago"},{"src":"https:\/\/ps.w.org\/wp-relativedate\/assets\/screenshot-4.png?rev=1206765","caption":"Post - Weeks Ago"},{"src":"https:\/\/ps.w.org\/wp-relativedate\/assets\/screenshot-5.png?rev=1206765","caption":"Comment - Seconds Ago"}],"raw_content":"<!--section=description-->\n<p>Like 'Today', 'Yesterday', '2 Days Ago', '2 Weeks Ago', '2 'Seconds Ago', '2 Minutes Ago', '2 Hours Ago'.<\/p>\n\n<h3>General Usage<\/h3>\n\n<p>You need not do anything. WP-RelativeDate will automatically modify your post\/comment date or time display. No text will be added if the post or comment is more than a month old.<\/p>\n\n<p>It will add the following text accordingly:\n* Post\/Comment Date\n * Today\n * Yesterday\n * X days ago\n * X weeks ago\n* Post\/Comment Time\n * X seconds ago\n * X minutes ago\n * X hours ago<\/p>\n\n<h3>Examples<\/h3>\n\n<ul>\n<li>Post\/Comment Date\n\n<ul>\n<li>Today<\/li>\n<li>Yesterday<\/li>\n<li>10th January 2007 (2 days ago)<\/li>\n<li>25th January 2007 (2 weeks ago)<\/li>\n<\/ul><\/li>\n<li>Post\/Comment Time\n\n<ul>\n<li>21:10 (2 seconds ago)<\/li>\n<li>21:15 (5 minutes ago)<\/li>\n<li>22:15 (2 hours ago)<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h3>Shortcodes<\/h3>\n\n<ul>\n<li><code>[relativedate]<\/code>\n\n<ul>\n<li><code>[relativedate date_format=\"jS F Y\" ago_only=\"false\"]<\/code><\/li>\n<\/ul><\/li>\n<li><code>[relativetime]<\/code>\n\n<ul>\n<li><code>[relativetime time_format=\"H:i\" ago_only=\"false\"]<\/code><\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h3>Build Status<\/h3>\n\n<p><a href=\"https:\/\/travis-ci.org\/lesterchan\/wp-relativedate\"><\/a><\/p>\n\n<h3>Development<\/h3>\n\n<p><a href=\"https:\/\/github.com\/lesterchan\/wp-relativedate\" title=\"https:\/\/github.com\/lesterchan\/wp-relativedate\">https:\/\/github.com\/lesterchan\/wp-relativedate<\/a><\/p>\n\n<h3>Translations<\/h3>\n\n<p><a href=\"http:\/\/dev.wp-plugins.org\/browser\/wp-relativedate\/i18n\/\" title=\"http:\/\/dev.wp-plugins.org\/browser\/wp-relativedate\/i18n\/\">http:\/\/dev.wp-plugins.org\/browser\/wp-relativedate\/i18n\/<\/a><\/p>\n\n<h3>Credits<\/h3>\n\n<ul>\n<li>Plugin icon by <a href=\"http:\/\/www.freepik.com\">Freepik<\/a> from <a href=\"http:\/\/www.flaticon.com\">Flaticon<\/a><\/li>\n<\/ul>\n\n<h3>Donations<\/h3>\n\n<p>I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='display%20relative%20date%20in%20every%20posts'><h3>Display Relative Date in every posts<\/h3><\/dt>\n<dd><ul>\n<li>If you want to display Relative Date in every posts, use <code>relative_post_the_date()<\/code> instead of <code>the_date()<\/code> in your theme.<\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h3>Version 1.51<\/h3>\n\n<ul>\n<li>NEW: Add in <code>[relativedate]<\/code> and <code>[relativetime]<\/code> shortcode.<\/li>\n<\/ul>\n\n<h3>Version 1.50 (01-06-2009)<\/h3>\n\n<ul>\n<li>NEW: Use _n() Instead Of __ngettext() And _n_noop() Instead Of __ngettext_noop()<\/li>\n<\/ul>\n\n<h3>Version 1.40 (12-12-2008)<\/h3>\n\n<ul>\n<li>FIXED: Pass In Default Values For $d, $before And $after In relative_post_date()<\/li>\n<\/ul>\n\n<h3>Version 1.31 (16-07-2008)<\/h3>\n\n<ul>\n<li>NEW: Works For WordPress 2.6<\/li>\n<li>NEW: Better Translation Using __ngetext() by <a href=\"http:\/\/hweia.ru\/\" title=\"http:\/\/hweia.ru\/\">Anna Ozeritskaya<\/a><\/li>\n<\/ul>\n\n<h3>Version 1.30 (01-06-2008)<\/h3>\n\n<ul>\n<li>NEW: Uses \/wp-relativedate\/ Folder Instead Of \/relativedate\/<\/li>\n<li>NEW: Uses wp-relativedate.php Instead Of relativedate.php<\/li>\n<\/ul>\n\n<h3>Version 1.20 (01-10-2007)<\/h3>\n\n<ul>\n<li>New: relative_post_the_date(); Alternative To WordPress the_date()<\/li>\n<\/ul>\n\n<h3>Version 1.11 (01-06-2007)<\/h3>\n\n<ul>\n<li>FIXED: Post Of The Same Date But Different Year Still Will Not Display Relative Date<\/li>\n<\/ul>\n\n<h3>Version 1.10 (01-02-2007)<\/h3>\n\n<ul>\n<li>NEW: Works For WordPress 2.1 Only<\/li>\n<li>NEW: Localization WP-RelativeDate<\/li>\n<\/ul>\n\n<h3>Version 1.00 (01-03-2006)<\/h3>\n\n<ul>\n<li>NEW: Initial Release<\/li>\n<\/ul>","raw_excerpt":"Displays relative date alongside with your post\/comments actual date.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/1612","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=1612"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/gamerz"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=1612"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=1612"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=1612"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=1612"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=1612"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=1612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}