Version Number Shortcode
Display a live version number anywhere on your site by fetching it from a remote JSON file — no hardcoding required.
by Nahnu Plugins · github.com/jaimealnassim/version-number-shortcode · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/jaimealnassim/version-number-shortcode/archive/refs/heads/main.zipA lightweight WordPress plugin that fetches a version number from a remote JSON endpoint and outputs it anywhere on your site via the [version_number] shortcode — no hardcoding required.
Features
[version_number]shortcode works in posts, pages, widgets, and page builders- Point to any publicly accessible JSON file with a
"version"key - Configurable check frequency: every 1, 6, 12, or 24 hours
- Manual Check Now and Save & Check Now buttons in the admin
- Status panel showing cached version, last check time, and next scheduled check
- Falls back to the last known version on network errors — never blank
- Clean uninstall — all options and transients removed on deletion
- Translation-ready (text domain:
version-number-shortcode)
Installation
From WordPress admin
- Download the latest
.zipfrom Releases. - Go to Plugins > Add New > Upload Plugin.
- Upload the zip and activate.
Manual
- Clone or download this repository.
- Upload the
version-number-shortcodefolder to/wp-content/plugins/. - Activate via Plugins in the WordPress admin.
Configuration
- Go to Settings > Version Shortcode.
- Enter the URL of your remote JSON file (see format below).
- Choose a check frequency.
- Click Save & Check Now to fetch immediately.
Usage
Place the shortcode anywhere WordPress processes shortcodes:
[version_number]
Works in the Classic Editor, Gutenberg (Shortcode block), Elementor, Bricks Builder, Divi, text widgets, and most other page builders.
JSON Format
Your remote file must return valid JSON with a version key at the root:
{
"version": "1.2.0"
}
Additional keys are ignored. See release.json in this repo for a working example.
Screenshots
Settings page — URL field, check frequency selector, action buttons, and status panel.
Changelog
See CHANGELOG.md for the full version history.
License
Licensed under the GNU General Public License v2.0 or later.
Contributing
Bug reports and feature requests are welcome. Please use the issue templates when opening an issue.
Pull requests should target the main branch. Keep changes focused and include a clear description of what was changed and why.
Credits
Built by Nahnu Plugins