{"id":15536,"date":"2011-11-03T11:24:43","date_gmt":"2011-11-03T11:24:43","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/magic-dates\/"},"modified":"2020-06-02T11:46:30","modified_gmt":"2020-06-02T11:46:30","slug":"magic-dates","status":"closed","type":"plugin","link":"https:\/\/bn-in.wordpress.org\/plugins\/magic-dates\/","author":4147237,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.3","stable_tag":"trunk","tested":"5.4.19","requires":"5.0","requires_php":"","requires_plugins":"","header_name":"Magic Dates","header_author":"Gerasimos Tsiamalos","header_description":"","assets_banners_color":"","last_updated":"2020-06-02 11:46:30","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.cssigniter.com","header_author_uri":"http:\/\/www.cssigniter.com","rating":5,"author_block_rating":0,"active_installs":90,"downloads":2504,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"4"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1358,4708,1423,17147,41666],"plugin_category":[40],"plugin_contributors":[79905],"plugin_business_model":[],"class_list":["post-15536","plugin","type-plugin","status-closed","hentry","plugin_tags-date","plugin_tags-dates","plugin_tags-day","plugin_tags-increase","plugin_tags-ordinal","plugin_category-calendar-and-events","plugin_contributors-tsiger","plugin_committers-tsiger"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/magic-dates.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>If you are like me, you are probably responsible for updating content in (some) of your clients' sites. Have you ever had pieces of content like these:<\/p>\n\n<ol>\n<li>\"This is my 8th year in this industry [...]\"<\/li>\n<li>\"Our little shop is up and running for 11 years [...]\"<\/li>\n<li>\"9 years ago we decided to open our shop [...]\"<\/li>\n<\/ol>\n\n<p>Then, at some point next year your client calls and tells you to update the \"11 years\" to \"12 years\". Wouldn't be great if these number could be auto-increased?\nAnd that's where \"Magic Dates\" comes to play.<\/p>\n\n<p>How to use it:<\/p>\n\n<p>Whenever you find yourself writing content in the editor, at the moment that you need an auto-increased number of years use the plugin like this:<\/p>\n\n<p>(Example current year: 2020)<\/p>\n\n<p>[magicdate]2005[\/magicdate] =&gt; This will produce 15<\/p>\n\n<p>If you want an ordinal number (1st, 2nd, 3rd etc) use it like this:<\/p>\n\n<p>[magicdate ordinalize='true']2008[\/magicdate] =&gt; This will produce 12th<\/p>\n\n<p>Use the [magicdays]YYYY-mm-dd[\/magicdays] shortcode to calculate the number of days between today and the given date<\/p>\n\n<p>Easy eh?<\/p>\n\n<!--section=installation-->\n<p>To install Magic Dates:<\/p>\n\n<ol>\n<li>Upload the 'magic_dates.php' file into the '\/wp-content\/plugins\/' directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Use the shortcode [magicdate][\/magicdate] in the editor to calculate the interval in years<\/li>\n<li>Use the shortcode [magicdays][\/magicdays] in the editor to calculate the interval in days<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.3<\/h4>\n\n<p>Add days interval calculations between today and a given date<\/p>\n\n<h4>1.2<\/h4>\n\n<p>Maintenance Release<\/p>\n\n<h4>1.1<\/h4>\n\n<p>Maintenance Release<\/p>\n\n<h4>1.0<\/h4>\n\n<p>Initial release<\/p>","raw_excerpt":"Auto increased dates through the power of shortcodes and Magic Dates plugin!","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bn-in.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/15536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bn-in.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bn-in.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bn-in.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=15536"}],"author":[{"embeddable":true,"href":"https:\/\/bn-in.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/tsiger"}],"wp:attachment":[{"href":"https:\/\/bn-in.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=15536"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bn-in.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=15536"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bn-in.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=15536"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bn-in.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=15536"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bn-in.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=15536"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bn-in.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=15536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}