{"id":27420,"date":"2014-01-23T20:08:15","date_gmt":"2014-01-23T20:08:15","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/a-long-time-ago\/"},"modified":"2014-01-23T20:08:15","modified_gmt":"2014-01-23T20:08:15","slug":"a-long-time-ago","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/a-long-time-ago\/","author":9628636,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1","stable_tag":"trunk","tested":"3.7.41","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"A Long Time Ago","header_author":"Slawek Amielucha","header_description":"","assets_banners_color":"","last_updated":"2014-01-23 20:08:15","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/amielucha.com\/","rating":4,"author_block_rating":0,"active_installs":10,"downloads":2676,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":"1","4":0,"5":"1"},"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,1356,1357,1360,1359],"plugin_category":[],"plugin_contributors":[82663],"plugin_business_model":[],"class_list":["post-27420","plugin","type-plugin","status-publish","hentry","plugin_tags-date","plugin_tags-time","plugin_tags-timestamp","plugin_tags-weekdays","plugin_tags-yesterday","plugin_contributors-amielucha","plugin_committers-amielucha"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/a-long-time-ago.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>A Long Time Ago is a WordPress plugin that replaces the default post time (for example: \"Posted on 01\/01\/2011 at 11:11\") with \"Posted x time ago\" (examples: \"Just now\", \"2 hours ago\", \"Yesterday\", \"on Thursday\", \"3 weeks ago\", \"1 year ago\").<\/p>\n\n<p>Enjoy!<\/p>\n\n<h4>Features Include:<\/h4>\n\n<ul>\n<li>Translation-ready. Includes English, Polish and Spanish.<\/li>\n<li><code>[time_ago]<\/code> shortcode allowing to place the time within posts and plugins.<\/li>\n<li>ISO-formatted <code>&lt;time&gt;<\/code> HTML element<\/li>\n<li>special cases: \"just now\" and \"yesterday\"<\/li>\n<\/ul>\n\n<h4>Bonus:<\/h4>\n\n<ul>\n<li>Function improving display of weekdays when using Polish language<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>long-time-ago<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory or go to your WordPress Admin Panel -&gt; Plugins -&gt; Add New -&gt; Upload (<code>wp-admin\/plugin-install.php?tab=upload<\/code>)<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Use <code>time_ago()<\/code> to place the <em>posted on<\/em> date in your templates or <code>get_time_ago()<\/code> to retrieve it. You can also use the <code>[time_ago]<\/code> shortcode.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I retrieve\/display the formatted date?<\/dt>\n<dd><ul>\n<li>To echo the date within the theme use <code>&lt;?php time_ago() ?&gt;<\/code>.<\/li>\n<li>To retrieve the date to a variable use <code>&lt;?php get_time_ago() ?&gt;<\/code>.<\/li>\n<li>To display it within content or in visual editors use the <code>[time_ago]<\/code> shortcode.<\/li>\n<\/ul><\/dd>\n<dt>How do I replace the *posted on* date format in my theme?<\/dt>\n<dd><p>Various themes use different methods to display the \"posted on\" date.<\/p>\n\n<p>For themes based on <em>_s<\/em> such as <em>twentyfourteen<\/em> you can replace all instances of <code>twentyfourteen_posted_on()<\/code> (names vary from theme to theme but chances are it will be called themename_posted_on()) appearing across the theme with <code>time_ago()<\/code>.<\/p>\n\n<p>You will most likely find the function in the following template files: content.php, content-single.php etc.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial release. Includes English, Polish and Spanish translations.<\/li>\n<\/ul>","raw_excerpt":"Add &quot;Posted x time ago&quot; for human-readable post dates. If the post is fresher than 1 week the plugin returns the day of the week.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/27420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=27420"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/amielucha"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=27420"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=27420"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=27420"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=27420"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=27420"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=27420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}