Years Since

Περιγραφή

Keep the date related texts current in your posts and allow your content to age well seemlessly. Texts like “I have worked for x years in web dev” in articles are outdated within a year. This plugin keeps them upto date automatically.

Usage

For example, on an “About” page text, you might have something like:

In classic Editor:

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.“

In Block Editor/Gutenberg:
Wrap the old text with new shortcode [years-since-gb] like:
[years-since-gb]I’m [years-since y=1990 m=5 d=16] old.[/years-since-gb]“.

This will still work even if you revert back to the Classic Editor seamlessly.

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.

Εγκατάσταση

  • Navigate to your plugins admin page.
  • Search for “years since” and download the plugin.
  • Install using the plugin admin interface.

Συχνές Ερωτήσεις

Does it work with Gutenberg?

Yes. If you have been using this plugin previously, the new editor brings breaking changes.
You can manage that well. Wrap the old text with new shortcode [years-since-gb] like:

[years-since-gb]I'm [years-since y=1990 m=5 d=16] old.[/years-since-gb]``

Does it work with ClassicPress?

Yes. This will still work even if you revert back to the Classic Editor seamlessly.

How can I contribute?

You can raise lots of issues here and also make some Pull Requests through github

Κριτικές

24 Σεπτεμβρίου 2020
A well-thought-out solution, sleek and elegantly coded. I love the functionality that allows for days, months and weeks instead of 0 years when time passed is less than a year. Congratulations @laurencebahiirwa and a big thank you!
Ανάγνωση όλων των 4 κριτικών

Συνεισφέροντες & Προγραμματιστές

“Years Since” είναι λογισμικό ανοιχτού κώδικα. Οι παρακάτω έχουν συνεισφέρει στη δημιουργία του.

Συντελεστές

“Years Since” έχει μεταφραστεί σε 3 γλώσσες. Thank you to the translators for their contributions.

Μεταφράστε το “Years Since” στην γλώσσα σας.

Interested in development?

Περιηγηθείτε στον κώδικα , ανατρέξτε στο αποθετήριο SVN ή εγγραφείτε στο αρχείο καταγραφής αλλαγών μέσω RSS .