Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/itsviney/age-when-published/releases/download/v2.0/age-when-published.zipAge When Published Wordpress Block
A simple Wordpress block plugin that displays the age of a person when a post was published. The age is calculated from a date of birth specified under Settings > Age When Published.
I built this plugin/block for a private Wordpress site I'm using as a sort-of diary/digital scapbook for my child. I wanted to be able to show how old they were when each post was written. I initially wrote it as a shortcode but when I migrated to a Block theme, I decided to re-write it as a Gutenberg block.
Download
Feel free to clone the repo, or if you just want a zip ready to upload to Wordpress, you can download the latest version here.
Screenshots
Here are a few examples of how it looks on the front-end.
And here's the very basic settings page.
Releases
1 release. Each count is every asset in that release; expand a row for the breakdown.