My birthday is on September 1, 1978. So currently it would show as 45 years 8 months 15 days.
For so many years, the same shortcode would show 45 years and if you added text = false (without the spaces) then just 45.
All of a sudden the months and days…it screws up with the layout.
You suggested on another post here to just do years-since y=1978 . But I wouldn’t want it to say 46 on January 1, 2024. I would want it on September 1, 2024. Using my birthday as example.
What about giving the option as to what to publish? like years, months, days, hours, minutes, etc…?
I don’t know which update now shows months and days automatically but if we get an option instead, it would be nice.
Opening a new ticket as requested with a feature request…
I’d like to add the Year, Month, Date for the purpose of?calculation, but only display the Year.
For example, if the business started on Nov 15, 2020, I’d like to say that it’s been around “3 years” up until Nov 15, 2024, when it switches to “4 years”.
However if I put: [years-since y=2020 m=11 d=15] it displays as “3 years, 5 months, 2 days” — whereas I’d like it to just say “3 years”.
This would allow me to create verbiage on client websites like, “Been in business for 7 years” and have it auto-update when they hit their business anniversaries.
Thanks for the great plugin.
]]>This: [years-since y=2019 m=12 d=31].
will show this: 4 years 3 months 18 days.
if I add text=false then just 4.
Something happened on this latest update. I AM NOT SAYING THE LATEST UPDATE IS BAD.
How can I chose to just show 4 years like it was before the latest update? What if I wanted 4 years 3 months?
]]>Hello, how can I display the year and months? I’d like to use the plugin to count how old someone is.
]]>So I was looking a while ago how to remove the automatic years added. Someone mentioned text=false (on a post on here). It worked. However, with this update it does not work any longer.
[ years-since y=1978 m=09 d=01 ] would add 45 years (minus the space on the square brackets I added for here so it does not interpret the code.
Now when adding text=false after a space that is after the 01 so like d=01 text=false ]. It would make it 45. Like if I write The 45 year old photographer. Without the text=false, it would be 45 years old photographer. That does not make sense, sometimes year is more appropriate.
That does not work right now any longer.
]]>I was looking for exactly a plugin like this, please update it since it is not working properly
]]>INSERT URL HERE is my website. Not putting it:
Howdy!
WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with one of your plugins, Years Since.
First, visit your website (INSERT URL HERE) and check for any visible issues. Next, visit the page where the error was caught (INSERT URL HERE/wp-admin/post.php?post=491&action=edit&message=4) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.
INSERT URL HERE/wp-login.php?action=enter_recovery_mode&rm_token=jNs6OlW8Uwm6DSWtoYcPc8&rm_key=DNM29sjL8JpQ9SblnG52Y0
To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.3.1
Current theme: Sahifa (version 5.8.2)
Current plugin: Years Since (version 1.3.2)
PHP version 8.2.6 Error Details
An error of type E_ERROR was caused in line 97 of the file /home/www/INSERT URL HERE/wp-content/plugins/years-since/alar-years-since.php. Error message: Uncaught TypeError: date_diff(): Argument #1 ($baseObject) must be of type DateTimeInterface, bool given in /home/www/INSERT URL HERE/wp-content/plugins/years-since/alar-years-since.php:97
Stack trace: 0 /home/www/INSERT URL HERE/wp-content/plugins/years-since/alar-years-since.php(97): date_diff() 1 /home/www/INSERT URL HERE/wp-includes/shortcodes.php(395): Laurencebahiirwa\YearsSince->shortcode_years_since() 2 [internal function]: do_shortcode_tag() 3 /home/www/INSERT URL HERE/wp-includes/shortcodes.php(235): preg_replace_callback() 4 /home/www/INSERT URL HERE/wp-includes/class-wp-hook.php(310): do_shortcode() 5 /home/www/INSERT URL HERE/wp-includes/plugin.php(205): WP_Hook->apply_filters() 6 /home/www/INSERT URL HERE/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1864): apply_filters() 7 /home/www/INSERT URL HERE/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(569): WP_REST_Posts_Controller->prepare_item_for_response() 8 /home/www/INSERT URL HERE/wp-includes/rest-api/class-wp-rest-server.php(1188): WP_REST_Posts_Controller->get_item() 9 /home/www/INSERT URL HERE/wp-includes/rest-api/class-wp-rest-server.php(1035): WP_REST_Server->respond_to_request() 10 /home/www/INSERT URL HERE/wp-includes/rest-api.php(545): WP_REST_Server->dispatch() 11 /home/www/INSERT URL HERE/wp-includes/rest-api.php(2911): rest_do_request() 12 [internal function]: rest_preload_api_request() 13 /home/www/INSERT URL HERE/wp-includes/block-editor.php(740): array_reduce() 14 /home/www/INSERT URL HERE/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload() 15 /home/www/INSERT URL HERE/wp-admin/post.php(187): require('/home/www/INSERT URL HERE…') 16 {main}
thrown
]]>
Out of curiosity, will there be an update any time soon? it hasn’t been updated in a year. I seriously love the plugin but the lack of updates worries me security wise.
]]>Nice Plugin ?? How about extending it with hours and minutes? Together with some js it could show a live timer since a specific date, that would be nice ?? does it take leap years into account?
Kind regards
Patrick
Well…should I be looking for a new plugins offering me the same options this plugins does?
Did it get hacked and I need to clean up my site?
]]>Hi,
This is a sleek plugin! Thanks
Are “year/s”, “month/s”, “day/s”, etc. strings translatable? I can see a .pot file but it is empty.
]]>Hi
A great plugin, just what I need to replace a plugin that seems to be abandoned.
Would it be possible to add a feature that would enable me to add the ordinals to the number of years so that it reads “…it is in its 17th years”?
Many thanks
]]>Hi, it would be a much better plugin if it didnt include the word ” years” itself and just returned the number.
]]>Hi, nice plugin. It would be really great if you could add an “offset” parameter which allows a positive or negative value so that the year returned was offset by the offset value. For example let say you used the shortcode without the offset and it returned 10 then you use the same shortcode with an offset of -1 then it would return 9.
Nathan
]]>Hi!
…and thanks for checking out the “Years Since” plugin – I hope you’re finding it useful! If you need any help with the plugin or want to request features, this is the place to ask.
Please understand that this forum is not monitored 24/7, but I do my best to respond quickly. I have also dedicated a few hours each Monday specifically for supporting my free plugins, so Mondays will probably find the fastest replies.
Cheers!
– John
]]>