Description
Keep date time related texts relevant. βI have worked for x years.β becomes outdated within a year. Years since keeps βxβ current in your posts and allow your content to age well.
Usage
A year must be provided in your text by the attribute βyβ such as [years-since y=2012]
.
As an option, Months by referencing βmβ and day by using βdβ. Months and day default to β1β if not added in the shortcode.
For example, on an βAboutβ page text, you might have something like:
We’ve worked remotely for
[years-since y=2012]
, which has allowed the team to spend more time traveling and spending time with family.
Or, if you wanted to update a time span on a particular anniversary, you could do something like:
I’m [years-since y=1990 m=5 d=16] old.β
1.3.2
- Fix
or
to||
1.3.1
- Namespace the plugin to avoid PHP conflicts.
- Fix the breaking html when [years-since-gb] is used.
- Test WP version compatibility for 5.6.
1.3.0
- Add functionality to allow for days, months, weeks instead of 0 years when time is less than a year.
1.2.0
- Add Gutenberg support
1.1.0
- Add Gutenberg note to readme.
1.0.1
- Translate returned errors.
- Shortcode parameter to suppress βyearβ and βyearsβ text.
1.0.0
- Initial creation.
Installation
- Navigate to your plugins admin page.
- Search for βyears sinceβ and download the plugin.
- Install using the plugin admin interface.
FAQ
-
Does it work with the Block Editor/Gutenberg?
-
Yes.
-
Does it work with ClassicPress?
-
Yes. This will still work even if you revert to the Classic Editor seamlessly.
-
How can I contribute?
-
You can raise lots of issues here and also make some Pull Requests through github
Reviews
Contributors & Developers
“Years Since” is open source software. The following people have contributed to this plugin.
Contributors“Years Since” has been translated into 5 locales. Thank you to the translators for their contributions.
Translate “Years Since” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.